Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Win32API UpdateResource() to change exe's Icon
Message
 
 
To
10/05/2003 00:02:04
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00787006
Message ID:
00787058
Views:
19
Hi Mark,

Maybe I'm missing something but why do you have to copy the same programm to multiple locations? Wouldn't be easier to maintain one copy and use different shortcuts to point to it with parameters specifying what application to run? In any case each shortcut may have it's own icon and you wouldn't have to change icons at all.

>I'm stuck trying to figure out how to programatically change the icon in a .exe file. We use a single VB program (written in house) that "Launches" our various VFP applications for the users, we want to be able to change the icon in this "Launcher" program for each application automatically with a custom icon for that application. We could do it manually, but then when we make a change to the Launcher and copy it back out to each application directory on the LAN, we would need to do that manual process again.... You may be asking what this launcher program does... It does a few things that help us deploy VFP applications to the users' local machines. It's quite nifty. It makes sure the latest version of the application, VFP runtimes and support files on the user's local PC are the latest version. Then it runs the VFP application on the local PC.
>
>Anyway, I'm stuck on the last win32api function UpdateResource, which is supposed to let me make the changes to the .exe file in order to change the icon in the .exe. I'm also stuck on the macro function: MAKEINTRESOURCE that seems to be required in order to specify "RT_ICON", which I've found is specified by MAKEINTRESOURCE(3). Is there a VFP equivallent to this, or is this not possible?
>
>Thank you tremendously, in advance!!
>
<snip>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform