News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Problem using rc files(Windows)

Started by Need4sleep, September 12, 2012, 10:34:35 PM

Previous topic - Next topic

Need4sleep

Im trying to compile an rc file in code::blocks but im getting some errors. Here's the file:

#include "I:/Win32/Win32_SimpleMenu/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"


the compiler says it is compiling the rc file, but it does nothing. After cancling i get:

can't open file `prompt': No such file or directory|
||preprocessing failed.|
||=== Build finished: 2 errors, 0 warnings ===|

resource.h
#define IDR_MYMENU                      101
#define IDI_MYICON                      102
#define ID_FILE_EXIT                    40001
#define ID_STUFF_GO                     40002
#define ID_STUFF_GOSOMEWHEREELSE        40003


Thanks if you can help!

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Need4sleep

I appreiciate the help, it not notes that the process tried to write to a nonexistant pipe. Does that help at all?

EDIT: also says windres.exe is the source that gets the error

oBFusCATed

Search the forum for a winres.exe, I think this is a common problem.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

ollydbg

Quote from: Need4sleep on September 12, 2012, 10:43:35 PM
I appreiciate the help, it not notes that the process tried to write to a nonexistant pipe. Does that help at all?

EDIT: also says windres.exe is the source that gets the error
Did you install the mingw compiler suite correctly? What is the error raw log message?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.