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
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