I'm migrating a project to C ++, but I'm having trouble calling .dll
This is code:
int LoadDLL (void) {
char handle;
//! Carrega a dll ...
handle = LoadLibrary(L"c:\windows\system\minhadll.dll");
//! Verifica se a dll foi corretamente carregada..
if (handle) {
}
return handle;
}
The error is in the "=" of the handle:
"IntelliSense: A value of type" HMODULE "can not be assigned to an entity of type" int ""
What am I doing wrong, and what do you recommend?