News:

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

Main Menu

Problem importing ressources

Started by rob, May 17, 2005, 09:17:37 AM

Previous topic - Next topic

rob

I just imported a Project from Visual Studio and was very happy with the result (compiles immediately) expect of the resources.  Resources got compiled, but the generated file does not havethe file properties defined in the resource file. What I need is just the VERSIONINFO-stufff, I stripped away the rest, but same result. Does anybody have any idea about what could be worng or additional steps required to make that work ?


here the content of the resourcefile:
------------------------------------

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x2L
FILESUBTYPE 0x0L
BEGIN
 BLOCK "StringFileInfo"
 BEGIN
   BLOCK "040904e4"
   BEGIN
     VALUE "CompanyName", "bla bla Productions Ltd.\0"
     VALUE "FileDescription", "bla bla Plugin\0"
     VALUE "FileVersion", "1.0.0.0\0"
     VALUE "LegalCopyright", "© bla-bla Productions Ltd.\0"
     VALUE "MIMEType", "application/blabla-plugin\0"
     VALUE "OriginalFilename", "npblabla.dll\0"
     VALUE "ProductName", "npblablai\0"
     VALUE "ProductVersion", "1.0\0"
   END
 END
 BLOCK "VarFileInfo"
 BEGIN
   VALUE "Translation", 0x0409, 1200
 END
END

mandrav

Is the resource actually being compiled and linked to the project?
Please post the *full* compile log.

Yiannis.
Be patient!
This bug will be fixed soon...

rob

thanks very much for the  answer, the file was not linked to the project

rob

the nightmare goes on: why does that *.res file not get linked ? (I enabled the Option "Link File"). If I put the file expllicitely as Link Library into the Build options, than it works fine. But shouldn't all objects-files (including *.res files form the resource compiler) get linked automaticatlly ?

mandrav

QuoteBut shouldn't all objects-files (including *.res files form the resource compiler) get linked automaticatlly ?
Only if they're added to the project.
Make sure that either your .rc (preferably) or .res file belongs to the project (i.e. can be seen in the project tree).

As a test, remove the .res from the project (if it is inside it), and add the .rc (if it isn't inside the project). Rebuild. Does this work?

Yiannis.
Be patient!
This bug will be fixed soon...