I have two libraries, sph.dll
and mydll.dll
, and I try to load them using LoadLibrary as shown below:
HMODULE hlib = LoadLibrary("mydll.dll");
if(!hlib){
printf("error");
MessageBox(NULL, "Erro -> mydll.dll não encontrado." , "Erro IB5 Printer" , MB_ICONERROR | MB_OK);}
HMODULE chlib = LoadLibrary("sph.dll");
if(!chlib){
printf("error");
MessageBox(NULL, "Erro -> sph.dll não encontrado." , "Erro IB5 Printer" , MB_ICONERROR | MB_OK);}
The problem is that when I compile an error message appears saying that sph.dll
was not found. When I call sph.dll
first, mydll.dll
is not found. I'm using the DEV-C environment to program.
What's the problem here?