Problems with Manifest generation

H

Havatcha

I have recently ported a project from VS .Net to VS 2005 and when I
build/run it I get a run-time error "R6034".
After a bit of poking around I discovered that my manifest file only
contains the following

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
</assembly>



When I replace this with the manifest from a functioning program:

<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.CRT'
version='8.0.50608.0' processorArchitecture='x86'
publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
</assembly>


The executable runs without a hitch.


Any suggestions on what settings I need to change to generate my
manifest correctly?
 
J

Jochen Kalmbach [MVP]

Hi Havatcha!
I have recently ported a project from VS .Net to VS 2005 and when I
build/run it I get a run-time error "R6034".
After a bit of poking around I discovered that my manifest file only
contains the following

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
</assembly>

Any suggestions on what settings I need to change to generate my
manifest correctly?

Normally the pragma-manifest-statement is automatically embedded, if you
include one of the CRT files!
Just insert an

#include <stdio.h>

and be sure you are using the DLL version of the CRT in your project
setting!
Then the CRT-manifest will be automaticalle generated.


--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
H

Havatcha

Jochen said:
Hi Havatcha!


Normally the pragma-manifest-statement is automatically embedded, if you
include one of the CRT files!
Just insert an

#include <stdio.h>

and be sure you are using the DLL version of the CRT in your project
setting!
Then the CRT-manifest will be automaticalle generated.



Thanks for the reply, I checked the Runtime library option in

Configuration Properties -> C/C++ -> Code Generation -> Runtime Library

and set it to "Multi-threaded DLL" which did the trick!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top