Building a wine(lib) based shared library to link with a Linux application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


_______________________________________________
wine-users mailing list
wine-users@winehq.com
http://www.winehq.com/mailman/listinfo/wine-users

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux