Re: Manifest file as a custom resource.



"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: Linux user interested in *BSD
    ... > But doesn't this fail to account for dependencies recursively? ... > your 'vim' example, I get messages like ... Interestingly, once it did load, the superficial GUI components were ... For example Slackware has a MANIFEST file that gives installed ...
    (comp.unix.bsd.freebsd.misc)
  • 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: Manifest file as a custom resource.
    ... 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. ... The call is usually placed in the forms 'Initialize' event. ... the app directory. ...
    (microsoft.public.vb.general.discussion)
  • Re: Directory.GetCurrentDirectory
    ... If you are trying to load an assembly from your app directory, takae a look ... at the sample I posetd in reply to your previous post ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Manifest problem in VS2008
    ... "Yoavo" wrote in message ... My C++ application uses a manifest file. ... Failed to load and parse the manifest. ...
    (microsoft.public.vc.mfc)

Loading