简体   繁体   English

在linux平台使用dll win32

[英]Use dll win32 in linux platforms

I want to use a DLL library for Win32 in Linux.我想在 Linux 中为 Win32 使用 DLL 库。

Can I use a library of Wine to do that?我可以使用 Wine 库来做到这一点吗?

You should be able to do that using winelib .您应该可以使用winelib来做到这一点。 Here is an interview with Ulrich Weigand a prominent WINE developer: 以下是对著名 WINE 开发人员 Ulrich Weigand 的采访:

  • I managed one to get WineLIB to use a windows dll for VQF playing.我设法让 WineLIB 使用 windows dll 进行 VQF 播放。 Do you forsee people using WineLIB to write applications in Linux that need a closed source windows dll?您是否预见到人们使用 WineLIB 在 Linux 中编写需要封闭源代码 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. IMO 这是 WineLib 的主要功能之一:您可以使用它将本机 Windows DLL 链接到 Linux 应用程序中。 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...)想想 ODBC 驱动程序、视频编解码器等(这就是为什么我最近添加了对在 WineLib 应用程序中执行甚至 16 位 DLL 的支持,因为 Win95 驱动程序往往会降低到 16 位......)

You can use win32 dll in WINE subsystem only if your invoking application is win32 executable too.只有当您的调用应用程序也是 win32 可执行文件时,您才能在 WINE 子系统中使用 win32 dll。 Otherwise you should have dll sources and try to adapt them for linux compiler of according programming language.否则,您应该拥有 dll 源并尝试将它们改编为相应编程语言的 linux 编译器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM