How do I make'm? :confused:
Printable View
How do I make'm? :confused:
You need to make a menu in the resource editor...here's a sample project...
I'll try and find some decent info in a moment.
So here's what I see.
You make the menu with a resource file. You Add it to the CPP File with quotes. You just put it in the switch to see what's pushed. Is that correct?
Almost. The .rc file is compiled separately from the .cpp file, to make a .res file. The file resource.h contains the definitions of the numerical items in the resource file, and is included into the .cpp file.
The linker combines the .res file along with the rest when it makes the final .exe.
What do these two errors mean? These are what I get when I try to run the program.Code:LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Random Practices.exe : fatal error LNK1120: 1 unresolved externals
You need to make sure that your project type is "Win32 Application" not "Win32 Console Application" and all the files have been added to the project.
for some reason I can't make a resource file anymore....I can design it but it won't show up in the list.
the menu doesn't show up :confused:
Never mind I got it :D
How did you do it???? :D
I don't know if you have seen my post Menus again...
I was also trying to add a menu to my C++ program, but it just wouldn't show up!! How did you do it???
I used exactly the same method as you did in yours...and it works in VC++ :confused:
This is really weird...I have no idea :rolleyes:
Hi parksie! I don't know if you have seen my reply, in Menus again.....take a look!! :D
did you try this? This pissed me off for a few minutes...iit won't show up without this...
Code:SetMenu(ghWnd_Main, LoadMenu(hInstance, MAKEINTRESOURCE(IDR_MENU1)));
Hi Steve!
I found the problem....I forgot to include the .rc file into the compiler....doooh!!! :D
yeah I read your thread right after I replied...congratulations :D
Thank you! :p