<!-- Article image -->
<!-- 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.
Open the default.html in notepad.exe
<TD VALIGN="MIDDLE" HEIGHT="23" WIDTH="12">
If you save the default.htm and start a new instance of VS7, a checkbox appears on the bottom-left.
var bValid = true;
var strNameWithParamList = "";
if( CHECKBOXOLDSTYLE.checked )
strNameWithParamList = FUNCTION_NAME.value;
strNameWithParamList = FUNCTION_NAME.value + "(" +
strParameters + ")";
bValid = window.external.ParentObject.ValidateMember.....
Save the file and try in VS7
Finished, now you can enter a member function the old way.