Hello, I was following a tutorial on menu (using ressource) when I got a problem : I can't make it do something when I click on the menu. Could someone please download my code and check for error?
Printable View
Hello, I was following a tutorial on menu (using ressource) when I got a problem : I can't make it do something when I click on the menu. Could someone please download my code and check for error?
I just changed the code a little and posted the updated file now.
You need to specify the correct "header file" name in the resource file. I changed "resource.h" to "ressource.h" because you are using "ressource.h" in your project.
I also delete the line that shows a message box whenever a "WM_COMMAND" message is sent. You are trying to show the PARAMS of the message which gives you an unexpected error.
I also put a line that ends the program when "Exit" is clicked from the File menu.