RegisterClassEx failing with error 123

Started by
2 comments, last by LessBread 16 years, 11 months ago
Hi, In my code RegisterClassEx fails with error code 123 which means a file or directory or volume label is incorrect. Any idea why this could be happening. Unfortunately I am not in a position to put the source in here so I would not be able to do that. Thanks and regards
The more applications I write, more I find out how less I know
Advertisement
Are you using an invalid character in the class name? Try using only letters, and maybe _ (underscore).
Insure the members in WNDCLASSEX are valid (run it through a debugger).
Also insure *all* members of WNDCLASSEX are initialized/null'ed, and
you are not using "WNDCLASS" with RegisterClassEx (ie, insure you are
using "WNDCLASSEX" not "WNDCLASS")
There's probably something wrong with the resource members of the WNDCLASSEX structure. That is, the cursor member, the menu member and the two icon members, possibly the HINSTANCE member as well.
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man

This topic is closed to new replies.

Advertisement