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?