Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't Add Function in Visual C++

Status
Not open for further replies.

tocomak

Programmer
Feb 10, 2007
1
US
I have downloaded Visual Studio C++ 2005 Express Edition and just trying right now to learn how to work with it.
I have a problem where I am trying to add a function to a form. The directions say that I should go to Class View and several more clicks until I reach the name of the form, right click and select "Add function" to add a function. The Add Function feature or add variable does not appear on the shortcut menu.
Is there a way to turn that feature on somehow? Or does it only become available at certain times? I would be pleased with any advice.
 
Why so complicated? You don't need to click all over the place. I don't have express on my machines so bear with me.

It goes along the lines of

Click on the file tab
Click on the file to open it. If you get a form coming up, right click and select "view code"
Choose a spot in the code and type your function in.

It is a free form editor: you can type anything in anywhere, make lots of mistakes and let the compiler find them for you. It doesn't compile as you type (unlike VB and C#) and moan when you get it wrong. It will only moan when you compile. Some people like it, others hate it. I prefer to get the idea down first and then worry about syntax and semantics later.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top