Posted: Sat Feb 09, 2008 4:43 pm Post subject: Visual C++ 2008 adding a function to a class?
I'm following this tutorial to learn how to execute code when pressing a button and writing the output to a text box (handy for making a memory trainer )
One problem tough, the guide tells me to add a function to the Form1 class by right clicking the class in class view, then clicking add and then add function, but there is no Add option!
I checked MSDN and they also tell me to add it that way but I can;t find it!
I added a SS
I don't think you can do it with the express edition. I have the professional edition and never used the express edition, so I can't tell you with certainty. You can still add a function without doing it that way. What you do is:
1. Go into solution explorer
2. right click form1.h -> view code
3. add the function under
Code:
public ref class Form1 : public System::Windows::Forms::Form
You'll have a choice on this. You can put it under public, protected, or private
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum