[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Usind win dll with wine
From: psuchomel () volny ! cz
Date: 2002-06-26 16:54:37
[Download RAW message or body]
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;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic