FF Create Resource File Error When Trying to add ICON to Form / Project

Started by Vincent Sampieri, March 12, 2012, 10:49:08 PM

Previous topic - Next topic

Vincent Sampieri

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"

Paul Squires

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).
Paul Squires
PlanetSquires Software

Vincent Sampieri

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.

Paul Squires

That is odd. Those icons cause my compiles to fail as well.

I will have to do more investigation on this one.
Paul Squires
PlanetSquires Software

Robert Eaton

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.

Vincent Sampieri

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.

Paul Squires

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.
Paul Squires
PlanetSquires Software

Roger Garstang

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.

Jean-pierre Leroy

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