About Store Forum Documentation Contact



Post Reply 
#include Question
Author Message
kfrench16 Offline
Member

Post: #1
#include Question
My c++ is really rusty. I've been messing around with the Bloody Massacre demo.

I added a Game Over screen by creating a GameOver.h and GameOver.cpp an used the Intro source files as a base to work from.

Since all of the engine includes are in Main.h, I tried the standard

Code:
#include "Main.h"


But, VC++ 2010 express says it can't load the file because it can't find it. My CPP and H files are in the Source directory along with Main and all of the other files. The only way I could get my addition to work was the following:

Code:
#include "Source\Main.h"

If this were C#, I would say that my addition was in a different namespace. Any ideas what might be wrong/set up wrong?

Side Note: My game over addition does work with the "Source\Main.h" include


Nevermind: The files were NOT in my source directory. I thought the directory was selected when I right-clicked on it in the project panel :(
(This post was last modified: 04-20-2011 04:57 AM by kfrench16.)
04-20-2011 04:49 AM
Find all posts by this user Quote this message in a reply
siwykon Offline
Member

Post: #2
RE: #include Question
If you don't understand MVC++ that you should use standard project created in tutorials and it should work!
(This post was last modified: 04-20-2011 10:51 AM by siwykon.)
04-20-2011 10:51 AM
Find all posts by this user Quote this message in a reply
kfrench16 Offline
Member

Post: #3
RE: #include Question
yeah, it has been a while since I used MVC++. So, it was more of a duh moment. It'll come back to me in time.

I solved this issue as soon as I hit the submit button, as always.
04-20-2011 01:08 PM
Find all posts by this user Quote this message in a reply
Post Reply