News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Resources & Manifests

Started by lmsmi1, November 26, 2012, 02:53:03 AM

Previous topic - Next topic

lmsmi1

Okay, I don't understand. I have all files (main.cpp; main.xml; icon.ico; resources.rc) included in my project. For some reason it gives this message when attempting to compile:

C:\Projects\WinServ\resources.rc|4|error: expected unqualified-id before numeric constant|

Here is the full resources.rc file:

#define MAIN_ICON 220712

//this will set your .exe icon
MAIN_ICON ICON "icon.ico"

1 24 "main.xml"

//include version information in .exe, modify these values to match your needs
1 VERSIONINFO
FILEVERSION 0,1,1,1
PRODUCTVERSION 0,1,1,1
FILETYPE 0x00000001L
{
  BLOCK "StringFileInfo"
{
BLOCK "040904E4"
{
VALUE "CompanyName", "write version info here"
VALUE "FileVersion", "write version info here"
VALUE "FileDescription", "write version info here"
VALUE "InternalName", "write version info here"
VALUE "LegalCopyright", "write version info here"
VALUE "LegalTrademarks", "write version info here"
VALUE "OriginalFilename", "write version info here"
VALUE "ProductName", "write version info here"
VALUE "ProductVersion", "write version info here"
}
}
  BLOCK "VarFileInfo"
{
VALUE "Translation", 0x0409, 1252 //language codes
}
}


Now I've done trial and error, and this resource file is basically weaving in and out of each part. Suggestions?

MortenMacFly

Quote from: lmsmi1 on November 26, 2012, 02:53:03 AM
Suggestions?
Post in the right forum. This is a Code::Blocks forum, not about general programming with resources. Your topic might become locked therefore.

(Please respect our forum rules you agreed to when registering with the forums.)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]