--------------------
From: tr********@hotmail.com (Yostage)
Subject: problems linking legacy code into my managed app
I'm trying to use some code that's roughly 20 years old with my C++
.NET app.
I get a boatload of errors when trying to compile it - stuff like
C2692 for the old-style function declarations, also C4027 and C2197.
The code compiles okay without the /clr switch. I've tried putting
#pragma unmanaged at the top of each file, but that didn't help. Is
there any other solution? It would take forever to try to fix all the
source by hand.
thanks,
Scott
Scott, it will make this much easier if you provide examples of what lines
are causing the errors and what the errors actually are. And what version
of Visual Studio are you using?
A code example showing some of these errors would be very useful in
determining what's going on.
Pranish Kumar, Microsoft Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm