Author Topic: Problem importing ressources  (Read 6277 times)

rob

  • Guest
Problem importing ressources
« on: May 17, 2005, 09:17:37 am »
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

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Problem importing ressources
« Reply #1 on: May 17, 2005, 10:07:15 am »
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

  • Guest
Problem importing ressources
« Reply #2 on: May 17, 2005, 10:52:35 am »
thanks very much for the  answer, the file was not linked to the project

rob

  • Guest
Problem importing ressources
« Reply #3 on: May 17, 2005, 11:34:13 am »
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 ?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Problem importing ressources
« Reply #4 on: May 17, 2005, 12:26:53 pm »
Quote
But 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...