Teen Programmers Unite  
 

 

Return to forum top

Making A Menu

Posted by putang1080 [send private reply] at June 25, 2001, 08:51:03 AM

I really need help making a menu with vc++ 6. i tried hours, but all i get are these errors: Compiling...
window.cpp
c:\programming\my programs\second\mymenu.rc(21) : error C2143: syntax error : missing ';' before 'constant'
c:\programming\my programs\second\mymenu.rc(21) : error C2501: 'LANGUAGE' : missing storage-class or type specifiers
c:\programming\my programs\second\mymenu.rc(21) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

i make the header file and a .rc file, but the rc file always screws up because i don't know what the hell i'm doing with vc++ 6. it really has some "great" help. i've tried many things, but i just can't get it, please help me soon.

Posted by miken [send private reply] at June 25, 2001, 09:06:19 AM

If you made all of the resources using vc++ 6 and not a text editor, everything should come out fine. The fatal error was probably caused because the compiler didn't recognize LANGUAGE, which was because it probably thought that you strung it on to the last line. The missing ';' is disturbing though, seeing how resource files do not have any ';'s in them! Thus, there is probably something wrong in the previous line. If not, then delete the LANGUAGE line altogether along with any preceeding preprocessor commands (like #ifdef _WIN32) - it really isn't needed unless you're doing multi-language versions (which I highly doubt you're attempting). Good luck on your Windows adventures!

Mike [mnansgar@hotmail.com]

Posted by putang1080 [send private reply] at June 25, 2001, 06:04:07 PM

i'll try, but i just got a new 30 gb hard drive, but bios will only recognize 500mb. so now i just gotta get this up and working first so i can install the whole visual studio 6.0(for no reason cause i only use vc++).

Posted by gian [send private reply] at June 26, 2001, 11:39:53 PM

Download one of those funky little hardrive managers from your BIOS/Motherboard manufacturer website.

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.