BCGControlBarPro界面库静态链接方法

来源:互联网 发布:中美大单 知乎 编辑:程序博客网 时间:2024/05/17 10:57

一、stdafx.h

#include <BCGCBProInc.h>


二、stdafx.cpp

#if _MSC_VER > 1500
#define COMPILE_MULTIMON_STUBS
#include "multimon.h"
#endif


三、在资源视图的对话框上点击右键,选择“资源包括(L)”




或者可以自己到*******.rc 文件代码视图中,自己手动修改

1).  只读符号指令添加

#include "bcgprores.h"


2). 编译时指令

注释或者去掉下面这句: 

#define _AFX_NO_SPLITTER_RESOURCES


3)、添加(除了BCGCBPro.rc必须添加,其他的根据需要添加):

#include "BCGCBPro.rc"
#include "D:\BCGSoft\BCGControlBarPro\BCGCBPro\Styles\BCGPStyle2007Aqua.rc"
#include "D:\BCGSoft\BCGControlBarPro\BCGCBPro\Styles\BCGPStyle2007Luna.rc"
#include "D:\BCGSoft\BCGControlBarPro\BCGCBPro\Styles\BCGPStyle2007Obsidian.rc"
#include "D:\BCGSoft\BCGControlBarPro\BCGCBPro\Styles\BCGPStyle2007Silver.rc"
#include "D:\BCGSoft\BCGControlBarPro\BCGCBPro\Styles\BCGPStyle2010Black.rc"
#include "D:\BCGSoft\BCGControlBarPro\BCGCBPro\Styles\BCGPStyle2010Blue.rc"
#include "D:\BCGSoft\BCGControlBarPro\BCGCBPro\Styles\BCGPStyle2010White.rc"
#include "D:\BCGSoft\BCGControlBarPro\BCGCBPro\Styles\BCGPStyleCarbon.rc"
#include "D:\BCGSoft\BCGControlBarPro\BCGCBPro\Styles\BCGPStyleScenic.rc"


四、资源附加包含目录

D:\BCGSoft\BCGControlBarPro\BCGCBPro\Styles


原创粉丝点击