Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Attaching Icons
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00094349
Message ID:
00094383
Views:
27
>>>>>When I attached an icon to my exe it did not work. It shows the icon in the little window to show that the attachment should work. When I make a shortcut on my desktop it is still the vfp fox. Any suggestions?
>>>>
>>>>Matthew,
>>>>
>>>>You have to include both a 32x32 and 16x16 icon in the exe. There's an araticle in the FAQ section (Project Manager) here at the UT, that gives the step by step instructions on how to do it.
>>>>
>>>>hth,
>>>
>>>Hi George,
>>>
>>>Does this method also work when creating a shortcut? My EXE shows my icon in the Windows Explorer with no problem, but when I try to create a short-cut, the Fox icon is initially displayed. I have to click the change icon button and pick my ICO file. If not, is there anything that can be done about this?
>>>
>>>TIA,
>>>
>>>James
>>
>>In my experience it always has used the icon embedded in the file. This even goes back to FPW 2.6.
>
>
>I have a 16x16 and a 32x32 icon imbedded in my EXE. It is strange to see the EXE display with the proper icon in Windows Explorer and be the Fox icon when creating a shortcut. Maybe this is a VFP bug or maybe I am missing something?!

Admittedly, I don't to get to see this since most of the installations aren't done in my presence (they're done at other sites). My recollection maybe faulty. However, I do know that if you create a short cut from Explorer and copy it into a group or desktop it works fine.

If this is a problem it may be that the setup is using the runtime DLL for the icon rather than the executable. The foxhead isn't in the EXE, however an icon handle to this icon (Foxhead) is part of the WNDCLASS structure the executable creates when it's run.

It's a little complicated, and not 100% reliable, but a DDE conversation, as part of a post-setup executable, with the Program Manager could rectify this if it's a problem.

When setup completes, if the Foxhead is the icon, click on the shortcut, bring up its property sheet, and click the change icon. It should be pointing to the EXE. If not, it's using the one assoicated with the DLL. BTW, you don't need to include the icon as a separate file for it to be displayed. Windows will extract it and display it directly from the EXE.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform