RegisterClass Function Returns Error Code 1410
Posted on 2006-06-19
I am running a c program that returns 1410 in this code snippet.
// Register the window class and return success/failure code.
ret = RegisterClass(&wndclass);
printf("return from RegisterClass = %d\n", ret);
ret1 = GetLastError();
printf ("return from GetLastError = %d\n", ret1);
What should I do to resolve this error? Value of ret1 is 1410.
also, since GetLastError returns DWORD I’m not sure the format specifier I’m using in the printf statement (%d) is correct.