   disabling library creation
  Hello,Is there a way to disable the creation of a library, ie override __declspec( dllexport )? I am including the same .h file using this in a test program as in my sdk, so I don't want my test program to be creating libraries.Thanks for your help,exorcist_bob   
  That's why you generally #define a symbol like DLL_API to be __declspec(dllexport) when building the DLL and __declspec(dllimport) when building a client of the DLL.   ;#ifdef BUILDING_DLL#define DLLEXPORT __declspec(dllexport)#else#define DLLEXPORT __declspec(dllimport)#endifUse DLLEXPORT instead of __declspec(dllexport), and #define BUILDING_DLL in the project that actually builds the DLL.