• Advertisement
Sign in to follow this  

RegisterClassEx failing with error 123

This topic is 3943 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
Are you using an invalid character in the class name? Try using only letters, and maybe _ (underscore).

Share this post


Link to post
Share on other sites
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")

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement