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生成好的静态链接库。请大家帮帮忙啊!
...全文
502 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
【更新至2025年】2001-2025年上市公司数字化转型年报词频统计(吴非、赵宸宇、甄红线)(300+年报词频统计) 1、间:2001-2025年 2、来源:上市公司年报 3、参考文献:企业数字化转型与资本市场表现——来自股票流动性的经验证据(吴非) 数字化转型如何影响企业全要素生产率(赵宸宇) 知识产权行政保护与企业数字化转型(甄红线) 4、方法说明:(1)参考吴非老师的做法,对人工智能技术、大数据技术、云计算技术、区块链技术、数字技术运用五个维度76个数字化相关词频进行统计 (2)参考赵宸宇老师的做法,对数字技术应用、互联网商业模式、智能制造、现代信息系统四个维度99个数字化相关词频进行统计 (3)参考甄红线老师的做法,对技术分类、组织赋能、数字化应用等类别下139个数字化相关词频进行统计 5、指标:年份、股票代码、公司简称、行业名称、行业代码、全文-文本总长度、仅中英文-文本总长度、人工智能技术-吴、大数据技术-吴、云计算技术-吴、区块链技术-吴、数字技术运用-吴、数字技术应用-赵、互联网商业模式-赵、智能制造-赵、现代信息系统-赵、技术分类-人工智能技术-甄、技术分类-区块链技术-甄、技术分类-云计算技术-甄、技术分类-大数据技术-甄、组织赋能-人工智能技术-甄、组织赋能-云计算技术-甄、组织赋能-大数据技术-甄、组织赋能-广义数字技术-甄、数字化应用-技术创新-甄、数字化应用-流程创新-甄、数字化应用-业务创新-甄、人工智能、商业智能、图像理解、投资决策辅助系统、智能数据分析、智能机器人、机器学习、深度学习、语义搜索、生物识别技术、人脸识别、语音识别、身份验证、自动驾驶、自然语言处理、大数据、数据挖掘、文本挖掘、数据可视化、异构数据、征信、增强现实、混合现实、虚拟现实、云计算、流计算、图计算、内存计算、多方安全计算、类脑计算、绿色计算、认知计算等300+词频

15,976

社区成员

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

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