Use dll win32 in linux platforms

2019-05-25 07:24发布

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

Can I use a library of Wine to do that?

标签: linux dll wine
2条回答
爷的心禁止访问
2楼-- · 2019-05-25 07:35

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 ...)
查看更多
成全新的幸福
3楼-- · 2019-05-25 07:39

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.

查看更多
登录 后发表回答