Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ VC9.0
I had build project BaseClasses. And after i add it to other project i get error.
What i build library, i get following error:
1>Embedding manifest...
1>Project : error PRJ0002 : Error result -1073741819 returned from 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe'.
 
My operating system is Windows 7 and Visual Studio 9.0.
Also i have got Visual Studio 6.0.
 
What should i do?
 

I tryed to recreate VS 9.0 project from VS 7.1 project and build it. No effect.
Posted 21-Jan-11 2:42am
Edited 25-Jan-11 2:41am
v5
Comments
Richard MacCutchan at 21-Jan-11 9:35am
   
Does this happen on every build? Have you tried doing a complete rebuild of both projects?
Kozlov_Sergey at 21-Jan-11 9:42am
   
Every build. I tryed rebuild both projects. But it gives no effect.
Kozlov_Sergey at 21-Jan-11 9:48am
   
I think, that could begun, when i installed Windows SDK 7.1
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Does this help?
http://support.microsoft.com/kb/948477[^]
 
<update> Replying to comments has become tedious
 
Kozlov_Sergey (KS): No, it doesn't (implicit reply)
 
Indivara (I): Try removing the setting that embeds the manifest
 
KS: That fixes error, but absence of manifest causes program to fail
 
I: What is in xxx.rsx? Can you manually create a VS2008 project and move all the source there?
 
KS: Is it possible without doing that? The source is OK, and looks like there are no errors in projects.
Build Log Build started: Project: MainFilter, Configuration: Release|Win32
Command Lines
Creating temporary file "c:\Depot\DVD Morpher 3.0\MainFilter\Release\RSP00000138203264.rsp"
with contents [ /outputresource:"..\Bin\Release\MainFilter.ax;#2" /manifest ".\Release\MainFilter.ax.intermediate.manifest" ]

Creating command line "mt.exe @"c:\Depot\DVD Morpher 3.0\MainFilter\Release\RSP00000138203264.rsp" /nologo" Output Window

Embedding manifest...

Project : error PRJ0002 : Error result -1073741819 returned from 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe'.

Results Build log was saved at "file://c:\Depot\DVD Morpher 3.0\MainFilter\Release\BuildLog.htm"
MainFilter - 1 error(s), 0 warning(s)

I: I'm a bit out of my depth here... how about starting with the second project (which has no dependencies?) and building that in VS2008? (just convert and build, no need to manually create vcproj)
 

</update>
  Permalink  
v2
Comments
Kozlov_Sergey at 21-Jan-11 9:56am
   
I have got this line:
 
Creating command line "mt.exe @"c:\Depot\DVD Morpher 3.0\AVDVDDecV2\Release\RSP00001715005152.rsp" /nologo"
 
Should there be symbol "@"?
Indivara at 21-Jan-11 10:15am
   
Yes, I think so (haven't got VS here now)
A shot in the dark - try removing the setting that embeds the manifest.
Kozlov_Sergey at 24-Jan-11 3:32am
   
It seems to me, that without manifest COM component cannot be created. It was build. But, when i create component, it fails. When i had file with manifest, component had been loaded successfully.
Indivara at 24-Jan-11 3:58am
   
Sorry, I'm a bit dull right now... to recap, this is with a VC6 project converted and built on VS2008, isn't it? What's the "xxx.rsp" file you mentioned above? (where does it come from? Could there be something wrong in the source?)
 
Removing the manifest has fixed the error (as expected), but you need the manifest for proper operation... how about creating the solution and project files in VS2008 directly, then adding the sources to it? Or are there a prohibitively large number of projects?
Kozlov_Sergey at 24-Jan-11 4:06am
   
I build 2 projects in Visual Studio 9.0. Second project, i have modified, has the same problem. Second project was created in Visual Studio 7.1, so i cannot downgrade to Visual Studio 6.0. First project depends from second.
 
Build Log Build started: Project: MainFilter, Configuration: Release|Win32
Command Lines Creating temporary file "c:\Depot\DVD Morpher 3.0\MainFilter\Release\RSP00000138203264.rsp" with contents
[
/outputresource:"..\Bin\Release\MainFilter.ax;#2" /manifest
 
".\Release\MainFilter.ax.intermediate.manifest"
]
Creating command line "mt.exe @"c:\Depot\DVD Morpher 3.0\MainFilter\Release\RSP00000138203264.rsp" /nologo"
Output Window Embedding manifest...
Project : error PRJ0002 : Error result -1073741819 returned from 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe'.
Results Build log was saved at "file://c:\Depot\DVD Morpher 3.0\MainFilter\Release\BuildLog.htm"
MainFilter - 1 error(s), 0 warning(s)
Kozlov_Sergey at 24-Jan-11 4:09am
   
There is no error in source code. It has not been modified for months.
Is there any way to solve problem without creating new project in Visual Studio 9.0 and adding files to it?
Kozlov_Sergey at 24-Jan-11 4:26am
   
I think, the projects are correct, because without baseclasses there are only unresolved externals.
Indivara at 24-Jan-11 4:40am
   
comments are getting a bit tedious - see updated answer
Kozlov_Sergey at 24-Jan-11 4:53am
   
Projects have got dependencies and are in Visual Studio 9.0. Projects are already converted. This error apears in Visual Studio 9.0, only if i add baseclasses lib file. Second project (AVDVDDecV2) depends from baseclasses and has the same problem.
Indivara at 24-Jan-11 5:30am
   
[Leaving now, further replies will be delayed. Try editing the question to include all details, that will kick it to the top of the queue and net you more replies. Use a better title to attract attention - like "Embedding manifest causes error in VS manifest tool"]
Indivara at 24-Jan-11 5:30am
   
I don't understand, what is baseclasses lib? Isn't that one of the projects you are talking about? or is it that proj1 (name MainFilter?) and proj2 (AVDVDDecV2) both depend on baseclasses.lib?
Kozlov_Sergey at 24-Jan-11 5:35am
   
Yes, they both depend on baseclasses. Baseclasses is microsoft directshow example project to work easier with directshow filters. Directshow filter is program (COM component) to watch video.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

-1073741819 is FFFFFFFFC0000005 so that might indicate some kind of "access denied" problem. Also, I seem to remember having a problem with an old copy of mt.exe being invoked. Check all your hard drives for all copies of mt.exe, and make sure you're using the latest one.
  Permalink  
Comments
Kozlov_Sergey at 24-Jan-11 8:03am
   
There is the path 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe'. It is not old. It is file from Windows SDK coming with VS 9.0. I have one more mt.exe, but it is not used (i have checked renaming the file and rebuilding).
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

It seems to me, that i have found solution: NET Framework 4.0 is required.
I tryed to create using mt.exe from command line. NET Framework 4.0 request message appered.
  Permalink  
Comments
Hans Dietrich at 24-Jan-11 9:17am
   
Wow. .NET 4.0 wasn't around when VS2008 was released. Are you sure you're using the right mt.exe? What does the version resource say?
Kozlov_Sergey at 24-Jan-11 9:31am
   
That means library, requred by mt.exe was updated and now requres NET Framework 4.0.30319.
Kozlov_Sergey at 24-Jan-11 9:22am
   
I had NET Framework 4.0 installed. Repair does not give any effect.
Kozlov_Sergey at 24-Jan-11 9:30am
   
I use
"C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe
" -manifest "C:\Depot\DVD Morpher 3.0\AVDVDDecV2\Release\AVDVDDecV2.dll.intermed
iate.manifest" -outputresource:"C:\Depot\DVD Morpher 3.0\Bin\Release\AVDVDDecV2.
dll"
Hans Dietrich at 24-Jan-11 9:34am
   
The version info for my mt.exe in v6.0a\Bin:
Version 5.2.3790.2075
Size: 719KB
(there is a different mt.exe for x64)
Kozlov_Sergey at 24-Jan-11 9:39am
   
I got it: i have installed Windows 7.1 SDK, but not all components. That is the problem, i suppose. Tommorow i will install all Windows 7 SDK.
Kozlov_Sergey at 25-Jan-11 5:20am
   
Installations failed. I will try to remove newly installed components. Fake Windows version, because company has not Windows 7, when we must install it.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

Removing Windows 7 SDK and NET Framework solved problem.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 525
1 CPallini 505
2 George Jonsson 353
3 OriginalGriff 220
4 Pheonyx 218
0 OriginalGriff 4,813
1 CPallini 3,890
2 Sergey Alexandrovich Kryukov 3,274
3 George Jonsson 2,552
4 Gihan Liyanage 2,186


Advertise | Privacy | Mobile
Web02 | 2.8.140905.1 | Last Updated 25 Jan 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100