Click here to Skip to main content
13,346,487 members (65,338 online)
Click here to Skip to main content
Add your own
alternative version


12 bookmarked
Posted 30 Jun 2000

WizGen Add-in for Visual Studio 6.0

, 4 Oct 2000
Rate this:
Please Sign up or sign in to vote.
This Add-in is similar to class wizard but can be used for MFC extension libraries
<!-- Link to source file download -->
  • Download source files - 94 Kb
  • <!-- Link to demo file download -->
  • Download the add-in - 46 Kb
  • <!-- Add the rest of your HTML here -->


    This Add-in is similar to ClassWizard but allows only new classes and overriding of virtual functions. It is useful if you use MFC extension libraries, this makes it easy to create a new class from any extension header files that you have. This is the first version so be prepared for problems.


    1. Copy WizGen.dll to any place you want. A good place would be to the Microsoft Visual Studio add-in folder at Common\MSDev98\AddIns. NOTE: If you build the project, it will copy it to the add-in folder for you.
    2. Open Visual Studio and select: Tools | Customize...
    3. Go to the Add-ins and Macro files tab and click on the "Browse" button.
    4. Go to the folder to which you copied WizGen.dll and select it. Make sure the Files of type listbox is on Add-ins (.dll).
    5. When closing the dialog, a toolbar will appear with the WizGen button. Using the customize dialog you can move this button to any other toolbar (if you want to).
    6. Pressing the button will open a dialog box in which you can select the text mode you want to use.


    Before you can start using this add-in you need to analyze your extension header files.
    1. Select New Wizard File from the drop-down menu.
    2. Enter a name for the extension library (no extension needed).
    3. Enter an Export Macro name. This is the #define that is used to export the classes eg. AFX_EXT_CLASS or leave it blank if it's not used.
    4. Enter the location of your class library header files.

    It will then generate a list of classes that it found.

    You are now ready to create new classes or override virtual functions. If you've ever used ClassWizard or the wizard bar everything should be familiar.

    Known Problems

    It uses MFC. If that's a problem wait until the next version. Hopefully I will try to remove the MFC dependencies.

    It asks to reload a newly created header file. If anyone can figure it out let me know.


    I think this is a version that actually works. (Though I'm sure someone will tell me it doesn't)
    Thanks goes to Darren Schroeder for helping me find and fix the bugs.

    There is now an option to include the base header file. If you analyze the MFC include files (which is recommended), you will then have access to all MFC virtual functions. It now avoids duplicates.

    Send your comments, feedback, and suggestions to <a>


    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here


    About the Author

    Philip Oldaker
    New Zealand New Zealand
    No Biography provided

    You may also be interested in...

    Comments and Discussions

    GeneralExcellent Tool, I rate a 5.0! Pin
    Ralf Z.28-Oct-02 8:19
    memberRalf Z.28-Oct-02 8:19 
    GeneralFeature request Pin
    LK6-Oct-00 13:53
    sussLK6-Oct-00 13:53 
    GeneralErrors Pin
    Darren Schroeder3-Jul-00 4:08
    sussDarren Schroeder3-Jul-00 4:08 
    GeneralRe: Errors Pin
    Philip Oldaker3-Jul-00 8:11
    sussPhilip Oldaker3-Jul-00 8:11 
    GeneralRe: Errors Pin
    Darren Schroeder3-Jul-00 8:18
    sussDarren Schroeder3-Jul-00 8:18 
    GeneralRe: Errors Pin
    Philip Oldaker3-Jul-00 8:51
    sussPhilip Oldaker3-Jul-00 8:51 
    GeneralRe: Errors Pin
    Darren Schroeder4-Jul-00 4:05
    sussDarren Schroeder4-Jul-00 4:05 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    Permalink | Advertise | Privacy | Terms of Use | Mobile
    Web03 | 2.8.180111.1 | Last Updated 5 Oct 2000
    Article Copyright 2000 by Philip Oldaker
    Everything else Copyright © CodeProject, 1999-2018
    Layout: fixed | fluid