Building a wine(lib) based shared library to link with a Linux application
Louis
louisemail at wanadoo.nl
Wed Aug 27 10:43:27 CDT 2003
Hi,
I'm trying to work out if and how I can port a windows dll to Linux and build a shared library that I can use in an ordinary Linux program.
To be more specific:
Supose I have sources for a Windows dll (mydll.c and mydll.def):
mydll.c
#include <windows.h>
int ShowBox(void)
{
MessageBox(NULL, "DLL", "DLL", MB_OK);
return 0;
}
mydll.def
LIBRARY "mydll"
DESCRIPTION 'Show a MessageBox'
EXPORTS
ShowBox @1
Is it possible with wine(lib) to buuild a library (preferably shared) that I can link with an ordinary Linux program, so that it becomes possible to call the function ShowBox from the
Linux program. Possibly requiring to link additional wine(lib) libraries.
Regards,
Louis
More information about the wine-devel
mailing list