Here, this might be more user-friendly :
That way, the User will never need to do anything . When you u'ze it in the DLL, simple define EXPORT before you include the header, like this:Code:#ifndef EXPORT #define EXPORT __declspec(dllimport) #endif//EXPORT
Tada!Code:#define EXPORT __declspec(dllexport) #include "myheader.h"
SPH