dll and classes question
I am making a directx rapper engine type thing but I have this problem.
I have the engine.h file wich contains the definition of the class. But in the definiton of the class it uses directx return types, wich makes the user of the engine have to have the directx header and lib files. I want it so you can just link the engine to your project and use without having the directx stuff. Is that possible?
Would extern work
Heres my extern definition code:
Basicly the first if is for the engine, the second one is for the project using the engine. I don't belive that is the solution cause I already have that.
#define DLLEXPORT __declspec(dllexport)
#define DLLEXPORT __declspec(dllimport)