BCGControlBar静态链接时,程序运行有bug,大家怎么解决的?

wenlongloong 2014-03-22 02:47:24
有一个工程,之前是在05下做的,使用了BCG。现在由于新增的功能,把他直接升级到了2010下,也把BCG升级到了22.10版本。由于其他原因,我的工程需在静态库中使用MFC,程序运行起来没有问题。但是界面上有写问题,不知道有没有人遇见过,怎么解决的?在共享DLL中使用MFC,截图如下。

在静态库中使用MFC,截图如下


图片中那几个按钮的功能还在,只是图片不见了。vs输出的提示信息也很清楚
Can't load image: 42b8. GetLastError() = 716
CBCGPMenuImages. Can't load menu images 3f01
但是我要怎么把这些资源找到添加进去呢?本来就是使用BCG生成好的静态链接库。请大家帮帮忙啊!
...全文
468 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
sdausxc 2015-03-19
  • 打赏
  • 举报
回复
sdausxc@163.com 能给我发点你用的配置资料吗,,,谢谢
sdausxc 2015-03-19
  • 打赏
  • 举报
回复
你好,请问你是在05下如何做的静态编译连接的,我再编译BCGCBPro80工程的时候有不少错误。非常感谢 BCGCBPro : error PRJ0007 : Could not create output directory 'c:\program files\bcgsoft\bcgcontrolbarpro\bcgcbpro\debug80'. 1>BCGCBPro : error PRJ0006 : Could not open the temporary file 'c:\Program Files\BCGSoft\BCGControlBarPro\BCGCBPro\Debug80\RSP00000132323600.rsp'. Make sure the file exists and that the directory is not write-protected. 1>BCGCBPro : error PRJ0006 : Could not open the temporary file 'c:\Program Files\BCGSoft\BCGControlBarPro\BCGCBPro\Debug80\RSP00000232323600.rsp'. Make sure the file exists and that the directory is not write-protected. 1>BCGCBPro : error PRJ0006 : Could not open the temporary file 'c:\Program Files\BCGSoft\BCGControlBarPro\BCGCBPro\Debug80\RSP00000332323600.rsp'. Make sure the file exists and that the directory is not write-protected.
duoxiangliuti 2014-03-22
  • 打赏
  • 举报
回复
Q: How can I add a library to my static MFC project? A: You need to follow these steps: Build a static library (see first question). In the Visual C++ open "Resource Includes" dialog (View | Resource Includes in Visual C++ 6.0 or right click to .rc folder in "Resource View " tab in Visual Studio.NET/2005/2008). Add #include "bcgprores.h" to "Read-only symbol directives". Add #include "BCGCBPro.rc" to "compile-time directives". (if your project requires localization, type #include "L.***\bcgcbpro.rc" where *** is a language name prefix. See Localization page for more details) Remove _AFX_NO_SPLITTER_RESOURCES. Otherwise, you'll not be able to see splitter cursors required by the library. If you are using static library version with MFC shared DLL, add "#define _BCGCBPRO_STATIC_ to "compile-time directives". If you need to load Office 2007-like styles, you've to add the following .rc files to "compile-time directives" after #include "BCGCBPro.rc": #include "<BCGPro installation folder>\Styles\BCGPStyle2007Luna.rc" #include "<BCGPro installation folder>\Styles\BCGPStyle2007Obsidian.rc" #include "<BCGPro installation folder>\Styles\BCGPStyle2007Silver.rc" #include "<BCGPro installation folder>\Styles\BCGPStyle2007Aqua.rc" and add <BCGPro installation folder>\Styles folder to "Additional resource include directory" in the project's Resources settings. 参考http://www.bcgsoft.com/faq.htm

15,977

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧