rdot

Hello all,

I recently switched from VS6 to VS2005. I have created a new project using the "Windows Forms Application" template.

If I add something to the blank dialog, say a button, and then double click the button to add handler code, VS2005 takes me to the form's .H file and gives me brackets { } for the code rather than a .CPP file with an empty function. In VS6, I was always taken to a .CPP file with an enpty function while the function's prototype was automatically created in a .H file with the class.

So, my question is, am I missing something Is there a setting or option to control this

Thanks,

-rob.



Re: Visual C++ General VS 2005 C++ puts code in H file??

Ramkrishna Pawar

I dont think that 'option' is available. IMO it is okay to have code put in .h files.




Re: Visual C++ General VS 2005 C++ puts code in H file??

J. A. Love

It's not so bad. The only code that needs to stay in the header file is the auto-generated code. All other functions that you write can be declared in the header file and defined in the implementation file as usual.