Click here to Skip to main content
12,756,514 members (30,742 online)
Click here to Skip to main content
Add your own
alternative version


15 bookmarked
Posted 23 Jul 2002

Visual Studio .NET- Old style member function wizard

, 23 Jul 2002
Rate this:
Please Sign up or sign in to vote.
Modifies the new VS7 Member Function wizard to add a member function without using the parameter list
<!-- Article image -->

Sample Image - memwiz.jpg

<!-- Add the rest of your HTML here -->


I switched from VS6 to VS7 and I wondered if it can be true that i can only add a member function by using the new "Add member function" Wizard. I searched for the sourcecode of the add member function wizard and found it in my Visual Studio directory in \Program Files\Microsoft Visual Studio .NET\VC7\VCWizards\MemFunctionWiz\HTML\default.html. I changed a few values and tested my changes in a new opened instance of VS7 and it worked. I added a checkbox, and changed a few things, and now I can enter a name of a function into the function name textbox like this "TestFunction(int nTest, BOOL bTest)", like good old VS6. It saves a lot of time. The checkbox exists to switch from old-style to new-style. If it is disabled I have to use the param list to define a new function.

  1. Open the default.html in notepad.exe

  2. Scroll to:


    If you save the default.htm and start a new instance of VS7, a checkbox appears on the bottom-left.

  3. Scroll to:

    function Validate(obj)
            var bValid = true;
                case "FUNCTION_NAME":
    // Change the code to:
                    var strNameWithParamList = "";
                    if( CHECKBOXOLDSTYLE.checked )
                        strNameWithParamList = FUNCTION_NAME.value;
                        strNameWithParamList = FUNCTION_NAME.value + "(" +
                                               strParameters + ")";
    // <- end change
                    bValid = window.external.ParentObject.ValidateMember.....
  4. Save the file and try in VS7

  5. Finished, now you can enter a member function the old way.


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

Moritz Leutenecker
Web Developer
Germany Germany
No Biography provided

You may also be interested in...


Comments and Discussions

GeneralI'll stay away from VC7 only because of the bugs Pin
Davidi4-Aug-02 8:31
memberDavidi4-Aug-02 8:31 
GeneralGood article, but... Pin
Bin24-Jul-02 12:46
memberBin24-Jul-02 12:46 
GeneralRe: Good article, but... Pin
KarstenK24-Jul-02 22:12
memberKarstenK24-Jul-02 22:12 
GeneralRe: Good article, but... Pin
Anonymous25-Jul-02 12:58
sussAnonymous25-Jul-02 12:58 
GeneralRe: Good article, but... Pin
Bin25-Jul-02 13:05
memberBin25-Jul-02 13:05 
GeneralRe: Good article, but... Pin
Anonymous25-Jul-02 21:25
sussAnonymous25-Jul-02 21:25 
GeneralRe: Good article, but... Pin
Michael P Butler25-Jul-02 13:06
memberMichael P Butler25-Jul-02 13:06 
GeneralRe: Good article, but... Pin
Jörgen Sigvardsson25-Jul-02 14:56
memberJörgen Sigvardsson25-Jul-02 14:56 
GeneralRe: Good article, but... Pin
Bin25-Jul-02 15:28
memberBin25-Jul-02 15:28 

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
Web02 | 2.8.170217.1 | Last Updated 24 Jul 2002
Article Copyright 2002 by Moritz Leutenecker
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid