在 Unix 和 MacOS 中读取文件资源

发布于 2024-08-28 08:52:18 字数 253 浏览 1 评论 0原文

我正在编写我的第一个 wxWidgets 应用程序,其目标是跨平台。该程序使用 dll 文件作为插件,在 Windows 中,读取 dll 资源部分以获取有关插件名称、作者姓名等信息。

我从未使用过 Unix 或 MacOS(尽管很少使用 Linux),并且想知道为这些其他操作系统编译二进制文件是否需要更改为 Windows 编写的代码。例如,Unix 和 MacOS 中是否有等效的 DLL?是否有将资源字符串和文件编译成此类文件的规定?

谢谢, 桑吉耶夫

I am writing my first wxWidgets application which aims to be cross-platform. The program uses dll file for plugins and in Windows, reads dll resource part for information regarding plugin name, author name etc.

I have never used Unix or MacOS (little Linux though) and am wondering whether compiling binary for these other OSes will require changes to the code written for Windows. For instance, is there a DLL equivalent in Unix and MacOS? Are there any provisions of compiling resource strings and files into a such files?

Thanks,
Sanjeev

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

贪了杯 2024-09-04 08:52:18

Unix 和 OS X 都有动态链接库。 Unix 有 .so 文件(通常,但有些使用其他扩展名),OS X 有 .dylib。不过,两者都以与 Windows DLL 相同的方式真正支持资源。 *nix 上的资源通常作为单独的文件提供。

PS:“MacOS”通常指版本 8 或 9。“OS X”是 *nix 变体的名称。

Both Unix and OS X have dynamically-linked libraries. Unix has .so files (usually, but some use other extensions), and OS X has .dylib. Neither really supports resources in the same manner as Windows DLLs though. Resources on *nix are usually provided as separate files.

P.S.: "MacOS" usually refers to version 8 or 9. "OS X" is the name used for the *nix variant.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文