Original Post
Hello! I've invested money into a book about DirectX and after some intensive reading, I've landed at the chapter about gamecores. That is, turning everything I learned about DirectX Graphics, Input and Sound into gamecores. I have had some problems with the files themselves though. The base of a core looks like this: 1. A header file, like System_Core.h or Sound_Core.h In file 1 the classes, variables and other things are declared. Ónly declared and nothing more... 2. A ccp file, like System_Core.cpp or Graphics_Core.h In this file the classes, variables, functions from file 1 are defined and base functions are written 3. A general header file, called Global_Core.h In this core the main includes needed are included, like System_Core.h and Input_Core.h, but also the directX headers like dshow.h, d3d9.h and windows.h 4. The WinMain.cpp file The base WinMain file in which everything combines into one. I just don't get how these are linked together though. I don't know in which files to include what header and stuff. I've tried posting on these forums with specific errors when trying to compile the input core but it only got worse. Errors that say I included headers twice where they're not supposed to, and errors that say the IDE doesn't recognize DirectX COM object because the right headers aren't included. I'm in a state of flux! I hope I can finally get an answer because I've been stuck at this point for a month or so. Please reply and help, -Stenny