Hello, I have a win32 DLL library, which I can't decompile, and can't get it's source code, but which I'd like to use in my Linux program. I wondered about making a win32<->Linux interface to use this library, using ready-to-use wine libraries. Is it possible, using wine libraries, to have access to functions from this DLL? If yes, can you tell me how? Thank you in advance. -- Best regards, Piotr Kowalski
At 2007-07-29 02:12 +0200, Piotr Kowalski wrote:>Hello, > >I have a win32 DLL library, which I can't decompile, and can't get it's >source >code, but which I'd like to use in my Linux program. I wondered about making >a win32<->Linux interface to use this library, using ready-to-use wine >libraries. > >Is it possible, using wine libraries, to have access to functions from this >DLL? > >If yes, can you tell me how? > >Thank you in advance. > >-- >Best regards, >Piotr Kowalski > >_______________________________________________ >wine-users mailing list >wine-users@winehq.org >http://www.winehq.org/mailman/listinfo/wine-usersThe answer is yes. This is a typical scenario for a winelib program. dlls can be swapped between native and windows. So write your C code. Use LoadLibrary() and GetProcAddress(). Call your routine accordingly. The winelib libraries will do the hard work of loading the dlls for you. If you don't need dynamic linking there may be even easier techniques. Either way you need to read the winelib documentation. Geoff Streeter
On Sunday 29 July 2007 04:12:38 Piotr Kowalski wrote:> I have a win32 DLL library, which I can't decompile, and can't get it's > source code, but which I'd like to use in my Linux program. I wondered > about making a win32<->Linux interface to use this library, using > ready-to-use wine libraries. > > Is it possible, using wine libraries, to have access to functions from this > DLL? > > If yes, can you tell me how?As I know, wine provides "winelib". Linking with winelib should provide access for replacements of WinAPI functions like "LoadLibrary" and "GetProcAddress". -- ?????? ?????? (ErV2005@rambler.ru) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 481 bytes Desc: This is a digitally signed message part. Url : http://www.winehq.org/pipermail/wine-users/attachments/20070731/7a0f8ce0/attachment.pgp