Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5971353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:30:17+00:00 2026-05-22T20:30:17+00:00

I’ve been working with a program someone else has made and I wanted to

  • 0

I’ve been working with a program someone else has made and I wanted to change the icon.

The icon I have is 256×256. I used http://converticon.com/ to create the icon (from a bmp I think). I used the icon in Inno Setup to create an installer and it worked fine

So I go to Options -> Application and attempt to load it. However, Delphi 2007 gives me an error ‘The parameter is incorrect.’ with this info: https://i.stack.imgur.com/vRCgs.png

When I do the same thing in Delphi XE, it works and loads the icon and changes it on compile. I can’t use XE right now because the program uses a math parser that has a problem with unicode (thats something to fix for later haha)

So, what I did was open the project in XE, change the icon, save it, delete the dproj and open it in 2007. This works, compiles and displays the correct icon, but when I go to the project options, it gives me the same ‘The parameter is incorrect’ error.

The workaround isn’t a big deal, but I shouldn’t need to do it. Does anyone know why I can’t change the icon in Delphi 2007?

Edit: I just used that same converticon site to convert the 256×256 icon to 192×192 and smaller and now it works perfectly. Thanks for the answers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:30:18+00:00Added an answer on May 22, 2026 at 8:30 pm

    The "icon" file is actually a collection of images, at different resolution and using different encodings. When I’m creating my icons I’m making sure they don’t actually contain the 256×256 PNG-encoded version because development tools built before Windows Vista don’t understand that. And that includes your Delphi 2007 and my Delphi 7. I also remove the alpha-encoded 256×256 icon because it simply makes the file needlessly large.

    You’ve got two fixes possible:

    • Find an ICO editor and remove all of the larger formats until your Delphi accepts the icon. I personally never seen the 256×256 used in the real world, they’d take up huge amounts of space on user’s Desktop or in Windows Explorer.
    • Use a dummy icon and replace the icon resource in the generated exe after Delphi is done with it. This way you can keep all of the larger image formats, including the 256×256 PNG image.

    Edit to correct an error

    If possible, always include the 256×256 image, Windows scales that down for everything above 64×64.

    I always assumed Windows Explorer would show an image that’s based on the closest matching image size available in the ICO. That is, if a 128×128 image is necessary, Windows would use the 128×128 image if available, or scale down the 256×256 image if that’s available, or scale up the 96×96 image. Apparently that’s not so. I’ve just made a test icon consisting of several image formats, including 32, 48, 72, 96, 128 and 256 consisting of simple blobs of color (using the flood-fill tool). In Windows Explorer I cycled throw the various Display Modes, and it became apparent that starting with "Large Icon" (and that’s not very large) Windows will scale down the 256×256 icon, and if that’s not available, use the 48×48 icon, unscaled! The result is truly ugly and unexpected. The 72×72, 96×96 and 128×128 icons were simply ignored.

    Thank you David for pointing this out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.