将 wxwidgets opengl 应用程序移植到不依赖库的应用程序

发布于 2024-11-25 15:18:30 字数 104 浏览 2 评论 0原文

我想移植不依赖于库的 wxwidgets opengl 应用程序。我至少希望它可以在没有附加库的情况下进行编译。我正在考虑将其移植到 MFC 或者 WIN32。什么是最简单的?也许你有其他建议?

I want to port wxwidgets opengl application that will be not library dependent.I want at least that it can be compiled without additonal libraries. I am thinking to port it to MFC or maybe WIN32.What is the most easiest?Maybe you have some other suggestion?

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

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

发布评论

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

评论(3

从来不烧饼 2024-12-02 15:18:30

MFC 是迄今为止最简单的。如果您不想使用未随 Visual Studio 安装的库,这也是唯一现实的选择。

MFC is by far the easiest. It's also the only realistic option if you don't want to use libraries that aren't installed with Visual Studio.

女中豪杰 2024-12-02 15:18:30

您确实意识到,MFC 只是另一个库,其工作方式与 wxWidgets 非常相似。唯一的区别是,MFC 随 Visual C++ 一起提供。但是,如果您要使用 GCC (MinGW) 进行编译,那么您就必须以某种方式获取 MFC。

此外,事件处理等的整个样板代码也很容易编写。我说:坚持使用 wxWidgets,它是跨平台的,支持良好,如果你害怕安装和使用库,那么你不应该进行编程。

You do realize, that MFC is just another library and works much like wxWidgets. The only difference is, that MFC ships with Visual C++. However if you were to compile with GCC (MinGW), then you'd have to obtain MFC somehow.

Also the whole boilerplate code for event handling and the like is rather prone to write. I say: Stick with wxWidgets, it's cross plattform, well supported and if you're scared by installing and using libraries, then you should not do programming.

固执像三岁 2024-12-02 15:18:30

尽管已经检查了一个答案,但从问题的措辞来看,答案是错误的。尽管 Visual Studio 附带了 MFC,但 MFC 只是另一个依赖项。您仍然需要确保用户系统上安装了正确的版本。解决这个问题的唯一真正方法是使用 WGL 来运行 Win32。那么你只依赖操作系统库。 (不过,您可能仍然需要安装 vcredist 软件包...)

Although one answer is already checked, taking the question the way it was worded, the answer is wrong. MFC is just an other dependency, although shipped with Visual Studio. You still need to ensure that the correct version is installed on the users system. The only real way to solve this problem is to go Win32 with WGL. Then you depend on nothing but OS libraries. (You probably still need to install the vcredist package though...)

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