OK, I think I'm trying to do something different here, and I'm not even sure if I should be on this list or the devel list. I'm trying to call wine library Windows functions from a Linux library. I've had problems in 2 places: 1 - the docs on the .spec files are telling me to do things that don't work when I try them (init DllMain, import, etc). 2) I get something built that calls a Windows function, but it segvs when called. wrong list? did I miss some doc or faq somewhere? Thanks for any help...
On Friday November 2 2007 23:45, Larry Lynch-Freshner wrote:> OK, I think I'm trying to do something different here, and I'm not even > sure if I should be on this list or the devel list. > > I'm trying to call wine library Windows functions from a Linux library.You cannot call Windows functions from Linux library or executable. Currently you have 3 options: 1) Create a Windows application/library instead of a Linux application/library. 2) Create a winelib application which will require WINE to work but can access Linux libraries; you will face some restrictions however: for example you will need to use Windows synchronization primitives instead of the pthreads ones. 3) Read http://wiki.winehq.org/WinePluginApi and http://www.winehq.org/pipermail/wine-devel/2006-April/046779.html for more information and implement this yourself so you can use WINE API in Linux applications and libraries. This is best solution but it require a lot of time and effort. Thank you for using WINE.