warning C4003: not enough actual parameters for macro 'CreateWindowA'
error C2059: syntax error : 'constant'
I have a header file
and a source file that defines the function CreateWindowCode:#include <windows.h> class cWindowManager { public: bool CreateWindow(int width, int height, int bits); bool DestroyWin(); private: HDC hdc; //Device Context HGLRC hrc; //Render Context HWND hwn; //Window Handle HINSTANCE hin; //Instance RECT rect; //Screen Rectangle WNDCLASS wc; //Window Class DEVMODE ss; //Screen Settings DWORD s; //Style DWORD xs; //Extended Style short depth; //Depthbuffer Specification unsigned int pf; //Pixel Format };
The error is flagged in both places where the function is named. This is not an error I have seen before, so I dont know what the deal is.Code:#include "WindowManager.h" bool cWindowManager::CreateWindow(int width, int height, int bits) { ----code---- }
MSVC Help says this, but im not getting anywhere.
Any ideas? Im using MSVC 6.0 Pro on Windows XP if it matters. It was building fine, then it started giving this error...Compiler Warning (level 1) C4003
not enough actual parameters for macro 'identifier'
The number of actual parameters specified with the given identifier was less than the number of formal parameters given in the macro definition of the identifier.
When a formal parameter is referenced in the definition and the corresponding actual parameter has not been provided, empty text is substituted in the macro expansion.



LinkBack URL
About LinkBacks


