Files and class organizations question.
-
As far as I can see, there's no header file in Managed C++ ?!?!?!?! everything seems to be inlined in the class like this in either a .h or .cpp file that can be included in the main project file:
__gc public class MyForm : public Form { public: MyForm() { Text = S"MyForm"; }; };
The question, is, can I separate the implementation for the declaration ? to have a header file and a code file ( .h and .cpp ) ? Are there rules, guidelines or specification ? Thanks. Max.
-
As far as I can see, there's no header file in Managed C++ ?!?!?!?! everything seems to be inlined in the class like this in either a .h or .cpp file that can be included in the main project file:
__gc public class MyForm : public Form { public: MyForm() { Text = S"MyForm"; }; };
The question, is, can I separate the implementation for the declaration ? to have a header file and a code file ( .h and .cpp ) ? Are there rules, guidelines or specification ? Thanks. Max.
Sure you can. In fact unless it's a very simple test class I am trying out, I usually put the declarations in the header and the implementations in the cpp file. Regards, Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]