I followed this tutorial:
Building Windows Forms Applications with Wizards in Visual C++ Express (12 Minutes - 8.2 MB)
And I get an alert box that pops up and says:
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Runtime Error!
Program: C:\Program Files\Microsoft Visual Studio 8\VC\bin\link.exe
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
---------------------------
OK
---------------------------
When I click OK, the output window at the bottom of VC++ EE says:
Project : error PRJ0002 : Error result 3 returned from 'C:\Program Files\Microsoft Visual Studio 8\VC\bin\link.exe'.
I turned on \VERBOSE for the linker and right before the error it says:
Processed /DEFAULTLIB:OLDNAMES
Processed /DEFAULTLIB:MSVCURTD
Processed /DEFAULTLIB:MSCOREE
Any ideas Thanks.

link.exe error
Dspapi
I can compile and run Win32 apps that use the Platform SDK but I still get the error above when trying .NET/Winforms apps.
Thanks
James Miles
Ragi B
Can you compile a simple application with the /CLR switch
Thanks, Ayman Shoukry VC++ Teamdan kisting
Put the application under the debugger and you should be able to see which one if being picked.
Or you can just use ntsd.exe.
It looks like you might have something wrong in the installation since this is looks like a major issue that would be seen by others if a common case.
Thanks, Ayman Shoukry VC++ TeamAdrian_Peirson
One last question, I'm a newbie so forgive this but I don't know how to "put the application under the debugger" since, although an exe is created, the build fails at the link stage. I thought an .exe has to build successfully for you to be able to use the debugger
John Black
Could you you show from where you are picking the CRT dlls (msvcr80
.dll).
Thanks, Ayman Shoukry VC++ Teameza
You are correct. The application has to be built. I wanted you to actually put the link.exe under the debugger to see any binaries it is loading.
Any ways, I am glad you are now unblocked.
Thanks, Ayman Shoukry VC++ TeamDougman Dean
Is that still an issue
Thanks, Ayman Shoukry VC++ TeamClearly.Net
Hello,
I have the same error:
Program: C:\Program Files\Microsoft Visual Studio 8\VC\bin\link.exe
This application has requested the Runtime to terminate it in an unusual way.
when in VS2005 I've created a new "Visual C++/CLR/Clr Console Application" and tried to build it.
Filemon showed me that msvcm80.dll (8.0.50727.42 Created 23 September 2005, 6:29:16 AM) is used from C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0DE06ACD.
Another machine with VS2005 is able to build the same project successfully.
It has msvcm80.dll with the same version (8.0.50727.42) but different timestamp 22 September 2005, 10:48:06 PM.
What should I re-install/reset to make link working
boban.s
edburdo
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0de06acd\msvcr80.dll
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll
Thanks for your help.
George.
Shripathi Kamath
I also tried re-doing the tutorial from the beginning but that didn't work.
I'm starting to think something's misconfigured with my .NET 2.0 Framework install.
I did *not* have a beta of .NET 2.0 installed - the VC++ Express installation instructions said to uninstall it if it was there but I do have .NET 1.0 and 1.1 installed. Would that cause problems I used to have a trial version of Visual Studio .NET 2002 installed on this machine. I unistalled it (except for the documentation). Basically, is there a simple way for me to test my .NET 2.0 install I checked Event Viewer after compiling and it says:
Event Type: Error
Event Source: .NET Runtime
Event Category: None
Event ID: 0
Date: 2006-01-30
Time: 3:03:34 AM
User: N/A
Computer: T02
Description:
The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Unable to open shim database version registry key - v2.0.50727.00000.
TRACEYMS
cl /EHsc test.cpp
That builds and runs fine.
But this doesn't:
cl /clr test.cpp
It produces the same error as before:
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Runtime Error!
Program: C:\Program Files\Microsoft Visual Studio 8\VC\BIN\link.exe
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
---------------------------
OK
---------------------------
If I try running the .exe produced, test.exe, this message results:
"Program too big to fit in memory"