RegisterClassEx failing with error 123
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
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")
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement