Trouble with windows menu in .net

Started by
-1 comments, last by MagiXSphere 20 years, 6 months ago
I''m currently coding a simple text editor as an exercise and got stuck trying to get a menu resource that I created in .net to show up when the application was running. I did like Petzold do in Programming Windows Fifth Edition and defined the lpszMenuName parameter of the window class to be TEXT("ResourceID") but it wouldn''t work. After trying some other ways of getting the menu to show up I did a search on google and found that if you instead set the lpszMenuName parameter to MAKEINTRESOURCE(ResourceID) the menu would show up fine. Can anyone explain to me why the way it’s done in the book does not work and why it does using MAKEINTRESOURCE? Thanks in advance.

This topic is closed to new replies.

Advertisement