PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Vincent Sampieri on March 12, 2012, 10:49:08 PM

Title: FF Create Resource File Error When Trying to add ICON to Form / Project
Post by: Vincent Sampieri on March 12, 2012, 10:49:08 PM
Hello,

For some reason FF 3.51 cannot successfully create a Resource File if I try to add an ICON to the main Form. I have tried many numerous times using Different .ICO Files, Detaching & Reattaching Image File to Form, Deleteing then Adding .ICO file back to image folder - Even tried selecting RCDATA to change Icon type as written in CODEGEN RESOURCE SCRIPT - Nothing seems to fix this issue - I have tried many different .ICO files - The RESOURCE FILE still can never be created - I am attaching the screenshot of the error message and here is a what is written in the RESOURCE SCRIPT:

#define FIREFLY_RESOURCE   1


AAAAA_APPICON  ICON DISCARDABLE "..\\IMAGES\\X-CIRCLE-BLU.ICO"

IMAGE_XCIRCLEBLU ICON DISCARDABLE "..\\IMAGES\\X-CIRCLE-BLU.ICO"

// Manifest info for WinXP theme support
1 24 "CODEGEN_MATRIX2.Exe.Manifest"
Title: Re: FF Create Resource File Error When Trying to add ICON to Form / Project
Post by: Paul Squires on March 12, 2012, 11:06:23 PM
That's strange. I haven't heard of issues like this before. Are you able to compile and run the example projects? Is it only assigning a main form icon that causes the compile to fail?

Can you post the icon as an attachment to you next post so I can try it?

(Here's a wild guess, are these icons that were converted from PNG format by a graphics program? I have heard of that causing problems sometimes).
Title: Re: FF Create Resource File Error When Trying to add ICON to Form / Project
Post by: Vincent Sampieri on March 12, 2012, 11:37:43 PM
The project is very Basic - Just one blank Main Form - Every time you try to add any icon - the resource file fails to get created - Could this be a PB 10 Issue ?
I've attached a zip file with a couple of the ICO files that I've tried attaching to the main form (I had to put them in a zip file since this forum doesn't allow you to attach .ico files.

Thanks.
Title: Re: FF Create Resource File Error When Trying to add ICON to Form / Project
Post by: Paul Squires on March 12, 2012, 11:48:26 PM
That is odd. Those icons cause my compiles to fail as well.

I will have to do more investigation on this one.
Title: Re: FF Create Resource File Error When Trying to add ICON to Form / Project
Post by: Robert Eaton on March 13, 2012, 12:19:50 AM
It's the PNG compression on the 256 x 256 icon. Remove the compression and it will work, sample attached.
Maybe Paul knows why it doesn't work.
Title: Re: FF Create Resource File Error When Trying to add ICON to Form / Project
Post by: Vincent Sampieri on March 13, 2012, 12:57:03 AM
Robert,

Thanks - Yes I just tried re-saving some Icons using IcoFX with the Compression Option turned off and that seems to solve the issue.

Thanks again.
Title: Re: FF Create Resource File Error When Trying to add ICON to Form / Project
Post by: Paul Squires on March 13, 2012, 09:24:43 AM
Hi Robert,

Thanks for figuring that out. I appreciate it. You really saved me some time.  :)

The problem would lie with the resource compiler not being able to handle such icons rather than being a FireFly issue.
Title: Re: FF Create Resource File Error When Trying to add ICON to Form / Project
Post by: Roger Garstang on March 13, 2012, 03:58:58 PM
I thought that was one of the big things fixed/added in the latest compilers?  Might have been version 9, so maybe they fixed it then, but when they went to the new resource statements it got left out.  Wouldn't be the first time...they did the same thing with the OpenFile Dialog, but when I told them about it all my threads got deleted.
Title: Re: FF Create Resource File Error When Trying to add ICON to Form / Project
Post by: Jean-pierre Leroy on April 13, 2016, 05:11:20 PM
Quote from: Robert Eaton on March 13, 2012, 12:19:50 AM
It's the PNG compression on the 256 x 256 icon. Remove the compression and it will work, sample attached.
Maybe Paul knows why it doesn't work.
Dear Robert, I know it's an old thread, but I would to thank you; I got the same issue with a 256x256 icon; thanks for the tips; I have uploaded a screenshot of the checkbox that needs to be unchecked with IcoFX portable version 6.2.

By the way, I discovered also that for Application icons, I need only images with 16x16, 32x32, 48x48 and 256x256 pixels.
https://msdn.microsoft.com/en-us/library/windows/desktop/dn742485(v=vs.85).aspx (https://msdn.microsoft.com/en-us/library/windows/desktop/dn742485(v=vs.85).aspx)