Author Topic: Resources & Manifests  (Read 3105 times)

Offline lmsmi1

  • Multiple posting newcomer
  • *
  • Posts: 11
Resources & Manifests
« on: November 26, 2012, 02:53:03 am »
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:

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

Here is the full resources.rc file:

Code
#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?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Resources & Manifests
« Reply #1 on: November 26, 2012, 06:25:30 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ