• BCGPContorBar 静态工程设置详解


    https://support.bcgsoft.com/KB/View/37-how-can-i-add-a-library-to-my-static-mfc-project

    How can I add a library to my static MFC project?

    You need to follow these steps:

      1. Build a static library using Integration Wizard.

      2. Add the following code to your application's stdafx.cpp (after include stdafx.h):

        #if _MSC_VER > 1500
        #define COMPILE_MULTIMON_STUBS

        #pragma warning(push)
        #pragma warning(disable: 4996)

        #include "multimon.h"

        #pragma warning(pop)

        #endif

      3. 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 or later editions).

      4. Add #include "bcgprores.h" to "Read-only symbol directives".

      5. Add #include "BCGCBPro.rc" to "compile-time directives". If your project requires localization, type #include "L.***cgcbpro.rc" where *** is a language name prefix. See Localization page for more details.

      6. Remove _AFX_NO_SPLITTER_RESOURCES. Otherwise, you'll not be able to see splitter cursors required by the library.

      7. If you are using static library version with MFC shared DLL, add "#define _BCGCBPRO_STATIC_" to "compile-time directives".

      8. If your project was ported from MFC version 2008 or higher, please remove all references to afxribbon.rc in your resource file: it conflicts with BCGCBPro.rc.

      9. 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>StylesBCGPStyle2007Luna.rc"
        #include "<BCGPro installation folder>StylesBCGPStyle2007Obsidian.rc"
        #include "<BCGPro installation folder>StylesBCGPStyle2007Silver.rc"
        #include "<BCGPro installation folder>StylesBCGPStyle2007Aqua.rc"

        and add <BCGPro installation folder>Styles folder to "Additional resource include directory" in the project's Resources settings.

        (you've to make the same changes for Office 2010-like or Scenic styles)
  • 相关阅读:
    POJ 1721 CARDS(置换群)
    HDU 4609 3-idiots(FFT)
    BZOJ 4259 残缺的字符串(FFT)
    HDU 5763 Another Meaning(FFT)
    BZOJ 4503 两个串(FFT)
    hihoCoder 1388 Periodic Signal(FFT)
    HDU 5823 color II(FWT)
    HDU 5768 Lucky7(CRT+容斥原理)
    HDU 5446 Unknown Treasure(Lucas定理+CRT)
    HDU 5741 Helter Skelter(构造法)
  • 原文地址:https://www.cnblogs.com/M4ster/p/6950020.html
Copyright © 2020-2023  润新知