Hi wine gurus
I have some dll, I want to run under Linux. I try to study Wine
docs, but, if I say the truth, I did not make me clever so much.
Please, could you help me port this part of win code (extracted from
my java <--> cpp bridge) under Linux? Petr
//define dll handler
HINSTANCE hInst = NULL;
//define entry in dll
typedef char* (_pascal * GLL_version)();
//here is some call
//load library
if( hInst == NULL )
hInst = LoadLibrary("mylib");
if( hInst == NULL )
return;
//get proc address
FARPROC proc = GetProcAddress(hInst, "GLL_VERSION");
//and call it
if (proc != NULL)
printf("%s", (char*)(GLL_version)proc());
//free handler
FreeLibrary(hInst);
hInst = NULL;