| | |
GUI: 3 C:\Dev-Cpp\lolLOLlol.cpp expected `,' or `;' before numeric constant
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2008
Posts: 14
Reputation:
Solved Threads: 0
Hey. The title displays the error and i was just wondering how i could fix it. Thanks!
C++ Syntax (Toggle Plain Text)
#include "resource.h" IDR_MYMENU MENU BEGIN POPUP "&File" BEGIN MENUITEM "E&xit", ID_FILE_EXIT END POPUP "&Stuff" BEGIN MENUITEM "&Go", ID_STUFF_GO MENUITEM "G&o somewhere else", 0, GRAYED END END IDI_MYICON ICON "menu_one.ico"
That is a resource file that defines MS-Window GUI resources such as menu, dialog boxes, etc. resource.h just contains define's for integers that are used in the resource file and elsewhere in the c++ code. Resource files are compiled with resource compilers, not c++ compilers.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Re: GUI: 3 C:\Dev-Cpp\lolLOLlol.cpp expected `,' or `;' before numeric constant
-1
#7 Jul 29th, 2008
1. There could be a missing semicolon in resource.h if he didn't use all #define macros, and declared something like "long something" in it. It would look weird, but there still could be one.
2. Take a look. His error is "3 C:\Dev-Cpp\lolLOLlol.cpp expected `,' or `;' before numeric constant". C:\Dev-Cpp\ is Dev-C++'s default installation directory. That must mean he's using it right? Also, I'm not saying that a C++ compiler could do that. I'm just saying that he must have an error in resource.h or something.
2. Take a look. His error is "3 C:\Dev-Cpp\lolLOLlol.cpp expected `,' or `;' before numeric constant". C:\Dev-Cpp\ is Dev-C++'s default installation directory. That must mean he's using it right? Also, I'm not saying that a C++ compiler could do that. I'm just saying that he must have an error in resource.h or something.
Last edited by TheBeast32; Jul 29th, 2008 at 12:54 am.
"Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live."
--Martin Golding
--Martin Golding
I will agree that resource.h might contain some crap that the resource compiler doesn't understand. Only the op can know that, and he has posted nothing about it. The *.h file could be just missing the // for start of comment. But since we're just guessing, there is no point discussing this any more.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Re: GUI: 3 C:\Dev-Cpp\lolLOLlol.cpp expected `,' or `;' before numeric constant
0
#10 Jul 29th, 2008
![]() |
Other Threads in the C++ Forum
- Previous Thread: printing text file string contents (array) - padded characters
- Next Thread: problem reading a in reverse order
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll download dynamic encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelper iamthwee ifstream input int integer java lib library linkedlist linker linux loop looping loops map math matrix memory microsoft newbie news number output parameter pointer problem program programming project proxy python random read recursion recursive reference return string strings struct studio system template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






