CapitolSoft Banner
The Benefits of Creating RAD C++ Controls in a MFC Extension Library:

(1) More than one RAD C++ controls can be packaged in on library module.

(2) Since the libraries are in binary format, you can hide important implementation details, yet allowing the users of your library to extend the control features through implementation inheritance.

How To Create a RAD MFC C++ Control

In order to create RAD C++ controls in a MFC extension Dll, you should start a Visual C++ project using "MFC AppWizard(dll) option (figure below):

RAD_MFC_Ctrl_Proj.jpg (112995 bytes)

Once you create the skeleton project, follow the steps described in the CDK create or insert new RAD C++ controls in the project. (Note: to export the control classes, you need to add "AFX_EXT_CLASS" directive in the control class declaration. Thus, the "Circle" control class declaration ( described in the CDK tutorial) should look as follows:

class AFX_EXT_CLASS CCircle : public CWnd
{
..
..
};

Once you finish creating the controls in the library, create a setup program using RadVC's "Single Click Setup" option. In the "RadVC Archiving Utility" window, You should do the following:

(1) Remove the implementation files (e.g. .cpp, .rc etc) using the '-' button

(2) Add the library (.lib) and dll (.dll) files using '+' button.

(3) Add additional control class declaration files (.h) using using '+' button.

RAD_MFC_Ctrl_Setup.jpg (60833 bytes)

 

 

Related Links:

Control Development Kit (CDK) Home

 

 

Microsoft Visual C++, Microsoft Visual Basic and Microsoft Visual Studio are registered trademarks of Microsoft Corporation.
Copyright © 1998-2000 Capitolsoft Corporation. All rights reserved.
Disclaimer: Capitolsoft Corporation is an independent business organization incorporated with the State Commission of Virginia and hence has no connection with U.S. Capitol or any other federal agency of U.S. government. Opinions expressed by the individuals in this site are of their own alone and hence do not necessarily reflect the views of Capitolsoft Corporation.

 

This page was last updated on November 21, 2005
Hit Counter