Mar 4th, 2001, 04:59 PM
#1
Thread Starter
Frenzied Member
How do I make'm?
Mar 4th, 2001, 05:05 PM
#2
Monday Morning Lunatic
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.
Attached Files
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Mar 4th, 2001, 05:14 PM
#3
Thread Starter
Frenzied Member
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?
Mar 4th, 2001, 05:35 PM
#4
Monday Morning Lunatic
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Mar 4th, 2001, 05:43 PM
#5
Thread Starter
Frenzied Member
Code:
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Random Practices.exe : fatal error LNK1120: 1 unresolved externals
What do these two errors mean? These are what I get when I try to run the program.
Mar 4th, 2001, 05:48 PM
#6
Monday Morning Lunatic
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Mar 4th, 2001, 07:26 PM
#7
Thread Starter
Frenzied Member
for some reason I can't make a resource file anymore....I can design it but it won't show up in the list.
Mar 4th, 2001, 07:28 PM
#8
Thread Starter
Frenzied Member
the menu doesn't show up
Last edited by SteveCRM; Mar 4th, 2001 at 07:49 PM .
Mar 4th, 2001, 10:48 PM
#9
Thread Starter
Frenzied Member
Never mind I got it
Mar 5th, 2001, 07:12 AM
#10
Frenzied Member
How did you do it????
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???
Mar 5th, 2001, 07:45 AM
#11
Monday Morning Lunatic
I used exactly the same method as you did in yours...and it works in VC++
This is really weird...I have no idea
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Mar 5th, 2001, 08:05 AM
#12
Frenzied Member
Hi parksie! I don't know if you have seen my reply, in Menus again.....take a look!!
Mar 5th, 2001, 10:54 AM
#13
Thread Starter
Frenzied Member
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)));
Mar 5th, 2001, 11:38 AM
#14
Frenzied Member
Hi Steve!
I found the problem....I forgot to include the .rc file into the compiler....doooh!!!
Mar 5th, 2001, 12:06 PM
#15
Thread Starter
Frenzied Member
yeah I read your thread right after I replied...congratulations
Mar 5th, 2001, 12:12 PM
#16
Frenzied Member
Thank you!
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width