overriding virtual member function of a generic class using wizard

in VS6 C++, "add member function wizard" was simple.

but in VS2005 C++, it is no longer possible to copy and paste a function declaration into the "add member function wizard". (must add each parameters one by one....)

for MFC classes, the property window provides a simple way to override a virtual member function, but that interface seems not working for generic classes.

is there an easy way to override a virtual member function of a generic class (like somehow enable the MFC class' virtual function override interface for generic class)

or I have to edit .h and .cpp manually

thanks.

kkang



Answer this question

overriding virtual member function of a generic class using wizard

  • georgem

    I have to confess that I am using the tool VA-X from www.wholetomato.com. It has extended autocomplete features that AFAIR help me in this case too.

  • cahit

    Open the class view. Right click on the class. Choose Add function. And you can easily add a new virtual function.

  • vortex-31

    kkang, the Wizard was intended for an audience that needed guidance through creating MFC and ATL applications. It was not designed for mass-producing code. It may be true that an earlier version served your specific scenario better, but in general the Wizard functionality (which is already complex in implementation) has taken a backseat to more productive approaches, such as the .NET framework and intellisense.

    Brian


  • Mary555

    int that way, you MUST "add" each parameters one-by-one...---very easy to make a mistake and create a whole new function, instaed of a override of a virtual function.

    VS6 allowed pasting a whole declaration at once(except the return value), so it was much faster.

    I am looking for a faster way..


  • overriding virtual member function of a generic class using wizard