Original Post
I'm trying to to make a template function inside a dll and i need to export it. I'm manuall loading the dll file. This is what i have. DLLOUT type nGet ... it gives me this error (C:\DOCUMENTS AND SETTINGS\METAL TYPHOON\MY DOCUMENTS\Input\nInput.h(41) : error C2059: syntax error : 'string') Where do i put this DLLOUT in order to export it ? thank you for any help
#define DLLOUT extern "C" __declspec(dllexport)
#define N_INPUT_ENTERSTATE 0x09
#define N_INPUT_PRINTCOUNT 0x0A
#define N_INPUT_MAXBUFFER 0x0B
#define N_INPUT_BUFFER 0x0C
template <class type> type nGet (int Return);
this compiles fine.. but if i put the DLLOUT in front of the template it gives me errors. it says (C:\DOCUMENTS AND SETTINGS\METAL TYPHOON\MY DOCUMENTS\Input\nInput.h(41) : warning C4091: '__declspec(dllexport ) ' : ignored on left of 'int' when no variable is declared) when i put it here