Use dll win32 in linux platforms

2019-05-25 06:51发布

问题:

I want to use a DLL library for Win32 in Linux.

Can I use a library of Wine to do that?

回答1:

You should be able to do that using winelib. Here is an interview with Ulrich Weigand a prominent WINE developer:

  • I managed one to get WineLIB to use a windows dll for VQF playing. Do you forsee people using WineLIB to write applications in Linux that need a closed source windows dll?
    Sure. IMO that's one of the main features of WineLib: you can use it to link native Windows DLLs into Linux apps. I think there are lots of examples where this could be useful; think of ODBC drivers, video codecs, etc. (That's why I recently added support for executing even 16-bit DLLs inside WineLib apps, because Win95 drivers tend to thunk down to 16-bit ...)


回答2:

You can use win32 dll in WINE subsystem only if your invoking application is win32 executable too. Otherwise you should have dll sources and try to adapt them for linux compiler of according programming language.



标签: linux dll wine