BCGControlBar Debug报错解决

来源:互联网 发布:康师傅波士顿矩阵分析 编辑:程序博客网 时间:2024/05/23 22:16

问题描述:

错误一:224行

if (::FindResource(hinstRes, strStyle, RT_BCG_STYLE_XML) == NULL)
{
TRACE(_T("Cannot load Style: %s\r\n"), strStyle);
ASSERT (FALSE);
return FALSE;
}


错误一:346行

#if !defined _AFXDLL || defined _BCGCBPRO_STATIC_
TRACE(_T("\r\nImportant: to enable Office 2010 look in static link, you need:\r\n"));
TRACE(_T("1. Open \"Resource Includes\" dialog and add resource files:\r\n"));
TRACE(_T("<BCGCBPro-Path>\\styles\\BCGPStyle2010Blue.rc\r\n"));
TRACE(_T("<BCGCBPro-Path>\\styles\\BCGPStyle2010White.rc\r\n"));
TRACE(_T("<BCGCBPro-Path>\\styles\\BCGPStyle2010Black.rc\r\n"));
TRACE(_T("2. Add path to this folder to \"Additional Resource Include Directories\"\r\n"));
TRACE(_T("<BCGCBPro-Path>\\styles\r\n\r\n"));
ASSERT (FALSE);
#endif

解决方案:

项目资源目录里添加

C:\Program Files (x86)\BCGSoft\BCGControlBarPro\BCGCBPro\Styles

BCGPStyle2010Black.rc

BCGPStyle2010Blue.rc

BCGPStyle2010White.rc

拖放到资源目录里即可




个人源码小站  可以百度: 我爱代码   woaidaima