The Code Project View our sponsorsClick here for Whole Tomato Software - Home of Visual AssistAdvertise on the CodeProject
Home >> Macros and Add-ins >> DevStudio Add-ins

WizGen Add-in for Visual Studio 6.0
By Philip Oldaker

This Add-in is similar to class wizard but can be used for MFC extension libraries 
 VC 4-6, Win95-98, NT4, W2K, MFC
 Posted 1 Jul 2000
 Updated 5 Oct 2000
Articles by this author
Send to a friend
Printer friendly version
Home Latest updates Submit your article About Us Advertise on the Code Project Contact us Discussion Forums
Navigation bar
11 users have rated this article. result:
4.55 out of 5.
  • Download source files - 94 Kb
  • Download the add-in - 46 Kb
  • Introduction

    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.

    Setup

    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.


    Usage

    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.


    Update

    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 philip@masmex.com


    [Top] Sign in to vote for this article:     PoorExcellent  

    View our sponsorsUltimate Toolbox is the must have tool for MFC Developers with hundreds of MFC extensions.Advertise on the CodeProject

    Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Use DHTML' from the View dropdown and hit 'Set Options'.
     Keyword Filter
     View   Per page   Messages since
    New threadMessages 1 to 6 of 6 (Total: 6)[First] [Prev] [Next] [Last]
    Subject 
    Author 
    Date 
      Feature request
    Unconfirmed/Anonymous posting LK 18:53 6 Oct 00 
      Errors
    Unconfirmed/Anonymous posting Darren Schroeder 9:08 3 Jul 00 
      Re: Errors
    Unconfirmed/Anonymous posting Philip Oldaker 13:11 3 Jul 00 
      Re: Errors
    Unconfirmed/Anonymous posting Darren Schroeder 13:18 3 Jul 00 
      Re: Errors
    Unconfirmed/Anonymous posting Philip Oldaker 13:51 3 Jul 00 
      Re: Errors
    Unconfirmed/Anonymous posting Darren Schroeder 9:05 4 Jul 00 
    Last Visit: 12:00 Friday 1st January, 1999[First] [Prev] [Next] [Last]
    Home >> Macros and Add-ins >> DevStudio Add-ins
    Advertise on The Code Project
    Article content copyright Philip Oldaker, 2000
    everything else © CodeProject, 1999-2001.