Hi,
I'm finally moving into DBSDK and I have my first newbie's questions.
My code (just definitions of vars and constants):
#include "windows.h"
#include "DarkSDK.h"
#define CTEMP 999
double d#; //line (7)
short mipmap=1; //line (8)
DWORD visible;
double V#; //line (9)
void DarkSDK ( void ) //line (13)
{
}
When compiling I have these errors:
Project.cpp(7) : error C2014: preprocessor command must start as first nonwhite space
Project.cpp(8) : error C2144: syntax error : 'short' should be preceded by ';'
Project.cpp(10) : error C2014: preprocessor command must start as first nonwhite space
Project.cpp(13) : error C2144: syntax error : 'void' should be preceded by ';'
(Almost one error per line
)
DWORD declaration seems to be right, although I haven't find it at the documentation. (Maybe I just have to allocate a double word, and I'm doing it wrong?)
About the errors, they are just declarations, what have I missed?
Please just some quick help would be appreciated. Thanks.