从DLL加载对话框,菜单 [英] Loading dialogs,menus,icond from a DLL
本文介绍了从DLL加载对话框,菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的应用程序中,我从应用程序本身加载图标和对话框.然后一切都正确加载.但是,如果我将所有资源(对话框,图标)放在dll中,并尝试从dll中将它们加载到应用程序中.塔尔(Thar)没有装载.可能是什么原因.请告诉我.在此先感谢
In my application iam loading Icons and Dialogs from application itself. Then all are loading properly. But if I put all the resources(dialogs, icons) in a dll and try to load them in application from dll. Thar are not loading . What might be the reason. Please let me know. Thanks in advance
推荐答案
加载对话框和其他资源需要手动调用AFX_MANAGE_STATE或使用扩展DLL(可以从向导创建).
查看这篇文章,
从DLL导出MFC对话框
MSDN ::扩展DLL
Loading dialogs and other resources require Manually calling of AFX_MANAGE_STATE or you can use Extension DLLs(You can creaate it From Wizard)
Check this articles,
Exporting a MFC Dialog from a DLL
MSDN::Extension DLL
这篇关于从DLL加载对话框,菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文