Re: Manifest file as a custom resource.
- From: "Steve Easton" <admin@xxxxxxxxxxxxx>
- Date: Sun, 4 Feb 2007 12:36:02 -0500
Thanks,
but If I'm going to do that I just might as well distribute the manifest file.
I want to call it from a resource that's compiled within the executable.
--
Steve Easton
"DanS" <t.h.i.s.n.t.h.a.t@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:Xns98CD7D5427968thisnthatadelphianet@xxxxxxxxxxxxxxxx
"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: DanS
- Re: Manifest file as a custom resource.
- References:
- Manifest file as a custom resource.
- From: Steve Easton
- Re: Manifest file as a custom resource.
- From: DanS
- Manifest file as a custom resource.
- Prev by Date: Re: Manifest file as a custom resource.
- Next by Date: Re: Convert long number to ascii
- 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