<table cellpadding=3 cellspacing=0 border=0 width=100% bgcolor=white><tr height=200><td width=100%><font size=2 color=black>Hi<BR>I would like to use a win32 DLL in  a native Linux application.  I want to  do this by using WINE.<BR> According to the documentation that comes with the DLL, a Windows program can load it with the following code (the names have been changed to protect the innocent -- me):<BR><BR>     HMODULE hDLL;<BR>     FARPROC lpfnFunc1, lpfnFunc2;<BR><BR>     hDLL = LoadLibrary ("library.dll");<BR>     if (hDLL == (HMODULE) NULL)<BR>         return ERROR;<BR><BR>     lpfnFunc1 = (LPAPPFUNC1) GetProcAddress (m_hDLL, "Function1");<BR>     lpfnFunc2 = (LPAPPFUNC2) GetProcAddress (m_hDLL, "Function2");<BR><BR> I created the following test program:<BR><BR>     #include &lt;wine/wine/winbase.h&gt;<BR><BR>     int main (int argc, const char *arvg[])<BR>     {<BR>         HMODULE hDLL;<BR><BR>         hDLL = LoadLibrary ("library.dll");<BR>         if (hDLL == (HMODULE) NULL)<BR>             return 1;<BR>         else<BR>             return 0;<BR>     }<BR><BR> When I try to build it, however, I get an "undefined reference to 'LoadLibraryA'".  Linking libwine.so does not fix this.<BR>Do i try with  additional flags for g++ compiler? Or Is my code  wrong ?<BR>please ,guide me to solve this problem .<BR><BR>Regards<br>Alireza Mahini<BR><br></font></td></tr></table><p><hr><font size=2 face=geneva><b>Join Excite! - <a href=http://www.excite.com target=_blank>http://www.excite.com</a></b><br>The most personalized portal on the Web!</font>