从 DLL 使用 wxWidgets
是否可以使用 DLL 中的 wxWidgets? 我正在写一个插件之类的。 (在本例中,ACM 用于 VirtualDub,但我还有其他项目想做类似的事情)
我遇到的所有文档都从可执行文件的角度讨论 wxWidgets。 在大多数情况下,我无法访问可执行文件的源代码,但我正在编写各种库以在这些可执行文件的进程空间中使用。
理想情况下,我希望执行启动 wxWidgets 并在 DLL 中运行所需的最少启动。 这可能意味着执行一些初始化,并启动消息泵,但不通告 wxWidgets 使用的入口点。
Is it possible to use wxWidgets from a DLL?
I'm writing a plugin of sorts. (ACM for use in VirtualDub in this case, but I have other projects where I would like to do a similar thing)
All the docs that I come across discuss wxWidgets from the point of view of an executable.
In most of these cases, I don't have access to the executable's source, but I'm writing various libraries for use in the process space of these executables.
Ideally, I would like to perform the minimum startup required to get wxWidgets up and running in a DLL.
Which probably means performing some initialization, and starting a message pump, but without advertising an entry point for wxWidgets to use.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用wxWidgets 2.9.2,您需要做的就是以下操作:
然后在完成后删除wxInitializer。虽然我仍然找不到任何地方的记录......
Using wxWidgets 2.9.2, all you need to do is the following:
Then delete the wxInitializer when you are finished with it. Though I still cannot find this documented anywhere...