Re: Private assemblies without a manifest file?
- From: Gili <gili.tzabari@xxxxxxxxx>
- Date: Wed, 17 Sep 2008 13:32:01 -0700 (PDT)
Carl,
I did exactly that. The problem is when you embed the manifest into
your DLL it actually embeds the following:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"></
requestedExecutionLevel>
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC90.DebugCRT"
version="9.0.21022.8" processorArchitecture="x86"
publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
</dependentAssembly>
</dependency>
</assembly>
I think the <dependentAssembly> line is what's causing it to die if
the manifest file is missing. Can you comment on this?
Gili
On Sep 17, 11:26 am, "Carl Daniel [VC++ MVP]"
<cpdaniel_remove_this_and_nos...@xxxxxxxxxxxxxxx> wrote:
Gili wrote:
Hi,
I followed the steps outlined in
http://msdn.microsoft.com/en-us/library/ms235291.aspxsection
"Deploying Visual C++ library DLLs as private assemblies" but
instead of using an external manifest file (i.e.
Microsoft.VC90.CRT.manifest) I'd like to embed it in the DLLs somehow.
What should I be doing? I tried removing Microsoft.VC90.CRT.manifest
and LoadLibrary() failed. I tried embedding the manifest into
msvcr90.dll or the DLL loading it and that failed too. Please help.
You can embed the manifest in your DLL. Make sure that you embed it with a
resource ID of 2 for a DLL, or 1 if you're building an EXE file.
See the links below for more information:
http://blogs.msdn.com/jonwis/archive/2006/01/17/514192.aspxhttp://blogs.msdn.com/zakramer/archive/2006/05/22/603558.aspx
The actual MSDN topic on the subject is at:
http://msdn.microsoft.com/en-us/library/ms235591.aspx
-cd
.
- Follow-Ups:
- Re: Private assemblies without a manifest file?
- From: SvenC
- Re: Private assemblies without a manifest file?
- References:
- Private assemblies without a manifest file?
- From: Gili
- Re: Private assemblies without a manifest file?
- From: Carl Daniel [VC++ MVP]
- Private assemblies without a manifest file?
- Prev by Date: Re: _tcsrchr identifier not found on visual c++ 2005
- Next by Date: Project : error PRJ0003 : Error spawning 'cl.exe' Visual Studio 2008
- Previous by thread: Re: Private assemblies without a manifest file?
- Next by thread: Re: Private assemblies without a manifest file?
- Index(es):
Relevant Pages
|