fire64
26.10.2008, 20:51
почему не компилится код ?
я хочу вызвать функцию в dll файле
#include <stdio.h>
#include <windows.h>
int main( int argc, char* argv[] )
{
HMODULE steamDLL;
steamDLL = LoadLibrary("steam.dll");
if ( !steamDLL)
{
MessageBox( 0, "Steam.DLL Not Found", "Launcher Error", MB_OK );
}
FARPROC SteamLogin = GetProcAddress(steamDLL, "SteamLogin");
const char* User = "user";
const char* Password = "12345";
int isSecureComputer = 0;
SteamLogin( User, Password, isSecureComputer, NULL);
return 0;
}
в результате я получаю ошибку
error C2197: 'int (__stdcall *)(void)' : too many actual parameters
я хочу вызвать функцию в dll файле
#include <stdio.h>
#include <windows.h>
int main( int argc, char* argv[] )
{
HMODULE steamDLL;
steamDLL = LoadLibrary("steam.dll");
if ( !steamDLL)
{
MessageBox( 0, "Steam.DLL Not Found", "Launcher Error", MB_OK );
}
FARPROC SteamLogin = GetProcAddress(steamDLL, "SteamLogin");
const char* User = "user";
const char* Password = "12345";
int isSecureComputer = 0;
SteamLogin( User, Password, isSecureComputer, NULL);
return 0;
}
в результате я получаю ошибку
error C2197: 'int (__stdcall *)(void)' : too many actual parameters