Re: Manifest file as a custom resource.
- From: DanS <t.h.i.s.n.t.h.a.t@xxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 4 Feb 2007 18:15:41 +0100 (CET)
"Steve Easton" <admin@xxxxxxxxxxxxx> wrote in
news:#NJUyaASHHA.3412@xxxxxxxxxxxxxxxxxxxx:
I know how to create the custom resource from a manifest file (
exename.exe.manifest ) I know what to name it.
I know what ID to give it...
But, how do I call it / load it at run time so I don't have to use /
distribute the separate exename.exe.manifest file??
tyia
You could dump this into a module and call CreateManifest...
http://planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=51893
&lngWId=1
(Watch for URL wrapping)
The call is usually placed in the forms 'Initialize' event.
On the forms first run, it will create the manifest file automatically in
the app directory. It will only create the file if the Windows version is
greater than Win2K, and the file does not already exist.
It will then return 'True' if the file was created. At this point, if the
program continues on, it will not have XP styles until the next run,
since the manifest file needs to be present when the exe is run.
That can be solved by looking at the return. If the return is 'True' you
can launch a new instance of the app and unload the original at that
point.
.
- Follow-Ups:
- Re: Manifest file as a custom resource.
- From: Dave O.
- Re: Manifest file as a custom resource.
- From: Steve Easton
- Re: Manifest file as a custom resource.
- References:
- Manifest file as a custom resource.
- From: Steve Easton
- Manifest file as a custom resource.
- Prev by Date: Re: [OT] Re: Function Needed
- Next by Date: Re: Manifest file as a custom resource.
- Previous by thread: Re: Manifest file as a custom resource.
- Next by thread: Re: Manifest file as a custom resource.
- Index(es):
Relevant Pages
|
Loading