Re: Manifest file as a custom resource.



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.



.



Relevant Pages

  • Re: Manifest file as a custom resource.
    ... how do I call it / load it at run time so I don't have to use / ... the app directory. ... It will only create the file if the Windows version is ... since the manifest file needs to be present when the exe is run. ...
    (microsoft.public.vb.general.discussion)
  • Re: Existance of .manifest files in app directory causes flicking
    ... >in the .app directory. ... > InitCommonControlsVB ... there is a lot of flickering on the form. ... > place the .manifest file in the app.path this will not happen. ...
    (microsoft.public.vb.general.discussion)
  • Re: Any tips on how to make a form look more "up-to-date?
    ... For apps running under WinXP, you can include a manifest file. ... See Randy's site that explain how to use a manifest file. ... The work-around is to place a picturebox on the frame and then place your controls inside the picturebox. ... Another alternative to a separate manifest file is to include it as a resource in your compiled EXE. ...
    (microsoft.public.vb.general.discussion)
  • Re: Manifest file as a custom resource.
    ... I've got the standard manifest file part figured out, and even the part when you ... As a resource, you add it as a custom resource and in resource editor it sould display as 24> 1 ... out of the Classic Theme to test things out. ...
    (microsoft.public.vb.general.discussion)
  • Xp Themes
    ... And I was receiving some errors, so I want to go to a manifest file, but I ... When the box appears asking for the type of resource type RT_MANIFEST ...
    (microsoft.public.dotnet.general)

Loading