Recent

Author Topic: question about fpcres  (Read 1166 times)

440bx

  • Hero Member
  • *****
  • Posts: 3946
question about fpcres
« on: April 26, 2021, 07:12:53 am »
Hello,

I've been reading about fpcres and how it is supposed to compile .rc files. 

I tried a .rc file which I normally compile with BRCC32.exe and fpcres didn't like it.  It said "Error: No known file format detected for file <filename>"

The attempt was made with the version of fpcres that comes with the FPC v3.0.4 distribution. Is the ability to compile .rc files in a later version ? 

Thank you for your help.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: question about fpcres
« Reply #1 on: April 26, 2021, 08:59:39 am »
The attempt was made with the version of fpcres that comes with the FPC v3.0.4 distribution. Is the ability to compile .rc files in a later version ?

Support for compiling RC files was only recently added to fpcres. We've merged that back to 3.2.1 so you can take the fpcres from FPC 3.2.2 RC1 for this (it's backwards compatible, so you can use it as a drop in replacement, though only the trunk compiler will use it together with the $R-directive). As remarked in the linked post, you must call it with the -of res parameter.

440bx

  • Hero Member
  • *****
  • Posts: 3946
Re: question about fpcres
« Reply #2 on: April 26, 2021, 09:44:41 am »
Thank you @PascalDragon, that's everything I needed to know :)

I appreciate the help.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: question about fpcres
« Reply #3 on: April 26, 2021, 01:22:42 pm »
Please note that some resource types are currently not supported (e.g. Accelerator tables) and that the resource file support is not as well tested. So if you have problems with specific resource files, please don't hesitate to file bugs.

 

TinyPortal © 2005-2018