-
User Friendlyness... :)
Here, this might be more user-friendly :) :
Code:
#ifndef EXPORT
#define EXPORT __declspec(dllimport)
#endif//EXPORT
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:
#define EXPORT __declspec(dllexport)
#include "myheader.h"
Tada! :)
SPH :p :) :p
-
Actually that can be a little better minime (same as Ken's but i already was using the EXPORT)
Code:
#ifndef EXP
#define EXPORT __declspec(dllexport)
#elif !defined EXP
#define EXPORT __declspec(dllimport)
Although for some reason VC likes to give a warning about redeclaration when using this to include the dll but whatever i just turn of those dumb warnings i know what im doing :D