Bcgcbproinc.h:no such S file or dictionary. Solution: Install the BGB interface Library
I. About Bcgcontrolbar.
Bcgcontrolbar is an MFC-based extension library that allows you to compose some applications that resemble Microsoft Office 2000/xp/2003 and Microsoft Visual Studio.NET (User toolbar) through full user-specific operations , menus, keyboards, etc.). The Bcgcontrolbar library contains about 150 well-designed, tested, and fully documented MFC extension classes. These can be easily applied to your application, saving a lot of development and commissioning time. The Bcgcontrolbar Professional Edition extension library contains a large number of advanced interfaces, such as a detachable table window, auto-hide form, and the ability to display the content of SNAP controls and toolbars when dragging, and a new algorithm for snapping (similar to the Microsoft Visual Studio.NET environment and algorithms introduced in Microsoft Visio), with detachable shortcut bars, tab toolbars, grammar checking and intellisense-style support for text controls, full plane vision, and more. In addition to the executable portion of the control bar compatible with MFC, the other structure of the library is entirely designed by us. Most of the new system features are automatically activated and managed by the kernel of the library.
1.VC6 need SP3 version above, mine is SP6, other version is not measured. If you want to know if your VC6 version is not SP6, you can use software detection.
VC6SP6 Detection Tool Download: http://download.csdn.NET/detail/dijkstar/4045489
Chinese/English]vc6 SP6 patch Download | VS6 SP6 patch Download: http://blog.csdn.Net/seanseanseanseansean/article/details/4122277
Both 2.VC6 and VS2010 need to install their own MSDN. If it is not installed, the installation will also alert integration MSDN to failure, and you cannot use MSDN to view BCG.
3. If you intend to install Unicode, because the associated libraries are not installed when VC6 is installed, you must have the VC6 installation disk directory (my CD-ROM image, post-load: H:\VC6EN\VC98\MFC\LIB) in the relevant library (mfc42u.lib/ Mfc42ud.lib/mfcd42ud.lib/mfcn42ud.lib/mfco42ud.lib/mfcs42u.lib/mfcs42ud.lib) copied to the VC6 installation directory, the default is: C:\Program Files\ Microsoft Visual Studio\vc98\mfc\lib. Then copy the corresponding DLL under Vc98\debug to C:\Windows\System32.
Two. Download and install the Bcgcontrolbar.
On Bcgsoft's official website (http://www.bcgsoft.com/), select Bcgcontrolbar and download. Since Bcgcontrolbar is a paid software, it can only be downloaded to its evaluation version (Evaluation Edition) on its official website for free. Open the downloaded BCGControlBarProEvaluation.exe and you can install the Bcgcontrolbar. The default is installed under the C:\Program Files\bcgsoft\bcgcontrolbar Professional evaluation path.
Three. Create a project using Bcgcontrolbar.
- The installed Bcgcontrolbar has been compiled and linked to the library that is being used, and is placed in the installation directory (default: C:\Program Files\bcgsoft\bcgcontrolbar Professional Evaluation) in the bin directory.
Bcgcontrolbar the DLL to be used has also been placed in the System32 directory. At the same time, in the Bcgcbpro directory also has its need for header files. In its installation directory, Examples has its accompanying demo program , can run, and see its effect.
Before compiling, set up its additional include directory and additional library directory .
The vc6.0 is set under its tools>>options>>directoris. In Show directories for select Include files, add the Bcgcbpro directory under the Bcgcontrolbar installation directory.
Then select the library files under Show directories for and add the bin directory under the Bcgcontrolbar installation directory.
VS2010 in the Properties page of the project in the configuration Properties >>vc++ directory, you can set the library directory containing the directory.
After the setup is complete, you can compile the run and see the results of the compiled example.
- After installing Bcgcontrolbar, you can select the bcgcbpro AppWizard Wizard for project creation when you create a new project. Some of the options associated with Bcgcontrolbar are added in their step, which can be set when they are created. Once setup is complete, select Finish to create the appropriate Bcgcontrolbar project. It is convenient to use its controls.
- For projects that already exist, you can also use Bcgcontrolbar by modifying some of these options and code to make them a Bcgcontrolbar project. Before using it, set the Include directory and its library directory, which are set up in the above 1. The specific implementation steps are as follows (it is a good idea to make a backup of the project before modifying it):
(1) Add # include "BCGCBProInc.h" to the header file stdafx.h.
(2) Add the base class Cbcgpworkspace for your app class. such as: Class Cmyapp:public CWinApp, public cbcgpworkspace.
(3) Add AfxOleInit () to the InitInstance () function in the App class.
(4) Add Setregistrykey (_t ("Mycompany\\myproduct") to the InitInstance () function.
(5) Add Bcgcbprocleanup () to the ExitInstance () function in the App class.
(6) Use Bcgcontrolbar to convert some classes in the MDI:
CFrameWnd-Cbcgpframewnd
CMDIFrameWnd-Cbcgpmdiframewnd
CMDIChildWnd-Cbcgpmdichildwnd
CToolBar-Cbcgptoolbar
CStatusBar->cbcgpstatusbar.
You can add the following code in the StdAfx.h
#define CFRAMEWND Cbcgpframewnd
#define CMDIFrameWnd Cbcgpmdiframewnd
#define CMDIChildWnd Cbcgpmdichildwnd
#define CTOOLBAR Cbcgptoolbar
#define CStatusBar Cbcgpstatusbar
(7) If you want to add the Microsoft Office 2007/2010-style Ribbon Bar, you can learn these techniques by referencing the following articles:
Office 2007/2010-style Ribbon Bar
Ribbon Backstage View-walkthrough
Ribbon Designer
(8) Add an embedded menu object for the Cmaimframe class. Add the member variable Cbcgpmenubar m_wndmenubar in the CMainFrame class. Then add the following code to its OnCreate function:
M_wndmenubar.create (this);
M_wndmenubar.enabledocking (Cbrs_align_any);
DockControlBar (&m_wndmenubar);
(9) Add the application visualization style at the beginning of cmainframe::oncreate. Its functions are as follows:
Cbcgpvisualmanager::setdefaultmanager (Runtime_class (manager));
Where the manager's value and style are compared as follows:
Cbcgpvisualmanager |
MS Office 2000/vc++ 6.0 look |
Cbcgpvisualmanagerxp |
MS Office Xp/visual Studio.NET look |
CBCGPVisualManager2003 |
MS Office 2003 Look |
CBCGPVisualManagerVS2005 |
Visual Studio 2005 Look |
Cbcgpwinxpvisualmanager |
Native Windows xp/vista/windows 7 look. |
CBCGPVisualManager2007 |
MS Office |
CBCGPVisualManagerVS2008 |
Visual Studio |
CBCGPVisualManagerVS2010 |
Visual Studio |
CBCGPVisualManager2010 |
MS Office Look |
Cbcgpvisualmanagerscenic |
Windows 7 Ribbon look. |
(10) Generate the program and execute it.
MFC Bcgcbproinc.h:no such S file or dictionary. Solution: Install the BGB interface Library