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:
00094393
Views:
39
>>>>>>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,

I just tested what you said and I cannot get the Foxhead icon to go away unless I select the separate ICO file. This only occurs when I create a shortcut from scratch from the desktop. The only way I can change the Foxhead is to select my ICO file as the icon.

I use InstallShield and it is not a problem. It's only if you create the shortcut from the desktop from scratch. You are probably right, it must be coming from a different source such as the DLL. This shouldn't be. If my EXE's icon shows up everywhere else except when creating the shortcut on the desktop, this is not consistent. Not directing my complaint towards you, just don't understand what I can do (if anything) to correct this.
James Moore
Owner/Developer
Ministry Tracking Software, Inc.
www.youthtrack.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform