Original Post
I have recently bought a book called "Ultimate Game Programming with DirectX" It has been a good book, but unfortunately some of the code is not working with my compiler. I am using Visual C++ 2005 Express, the book uses Visual C++ 2003. In the part that I am having trouble with, the book told me to create a project and then to create main.h and main.cpp (It gave me the code). Then It told me to go to File->Add->New Project and it told me to clike it and create a new project called "StrandedEngine",I changed the configuration on StrandedEngine to Static Library (.lib) file. Then I added a few source and header files to StrandedEngine and wrote in the code. The problem I am having lies in main.h, I am meant to include a file from StrandedEngine in main.h, except main.h is a part of the GameProject project, they are both in the same solution though. The book told me to write the include file like this: #include "StrandedEngine/engine.h" Unfortunately it is giving me this error when I try to debug it: fatal error C1083: Cannot open include file: 'StrandedEngine/engine.h': No such file or directory Here is the code for main.h: I have no idea what the problem is, maybe it is because I am using VC++ 2005 instead of 2003?
#ifndef _UGP_MAIN_H_
#define _UGP_MAIN_H_
#include"StrandedEngine/engine.h"
#pragma comment(lib, "lib/StrandedEngine.lib")
#define WINDOW_CLASS "StrandedGame"
#define WINDOW_NAME "Stranded"
#define WIN_WIDTH 800
#define WIN_HEIGHT 600
#define FULLSCREEN 1
// Function Prototypes...
bool InitializeEngine();
void ShutdownEngine();
// Main game functions.
bool GameInitialize();
void GameLoop();
void GameShutdown();
#endif