Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finidng an icon in a different exe
Message
From
27/03/2000 07:51:10
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00350636
Message ID:
00350656
Views:
22
>We have a framework that is compiled into exe. We then Set Proc to this exe and Set Classlib to ... In theExe so we can we find all our programs and class libraries.
>
>The problem.
>In the base form we have code that assigns the icon of the form based on an application property:
>
>ThisForm.Icon = goApplication.cIcon
>
>In the application exe we have bound in the icon file and set the goApplication.cIcon property.
>
>When we distribute both exe's the icon does not display correctly. I have worked around this by binding the specific icon file into the framework exe. It appears that because the assignment of the icon property is inside the framework exe, the icon needs to be inside that exe file.
>
>Is this correct? We do not really want to have to put the application specific icon file into our framework project. Any ideas?

If you aren't launching the app by directly clicking on the executable, but use shortcuts instead, you can associate icons from files with a shortcut in a fairly simple and straightforward fashion - it's now just an issue of creating the shortcut with the proper icon association. Both the Wscript.Shell Object's CreateShortcut method from the WSH COM object, and George Tasker's LNKFILES, can specify an icon to use in conjunction with creating a shortcut.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform