Original Post
Ive made a function called:
HRESULT InitDirectDraw(HWND hWnd);
and its just a standard direct draw initialization function, but im having difficulty declaring it. The function itself is in DirectX.cpp, while the prototype declaration is in Windows.cpp. The problem is that it does not seem to recognize the function when i call it in Windows.cpp, just before the message loop. The line of code is simply:
HRESULT InitDirectDraw(HWND hWnd);
I get 3 error messages because of this. they are:
syntax error : missing '';'' before identifier ''InitDirectDraw''
''HRESULT'' : missing storage-class or type specifiers
unexpected end of file found
can anyone help me figure out what is wrong? am i declaring it wrong?