View Single Post
  #9   Spotlight this post!  
Unread 21-12-2006, 16:55
esquared's Avatar
esquared esquared is offline
Keeps saying 3-2-1-Rush...
AKA: Angry Eric
no team (Volunteer!)
Team Role: Mascot
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Boston, MA
Posts: 192
esquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond repute
Re: Visual C++ 2005 Designer

Quote:
Originally Posted by 6600gt View Post
So basically you are saying that I should put all my functions in the cpp file. I only need to really do this for the children, right? Currently, my project has everything in the header files. I was trying that but didn't know how to set it for this compiler. Thanks for the sample. This is exactly what I was looking for. When school finally ends tomorrow, I will try it out.
The short answer to your question is that function declarations should go into the header files (along with documentation of what the functions do ), and the function definitions should go in the cpp files.

The long answer is best left to some research into good programming practices, you can always start with the ubiquitous Wikipedia (http://en.wikipedia.org/wiki/Header_file) to get more information.

-Eric