Hi
All the information I had read suggested that if you had an existing C
project that you wished to change to managed code all you had to do was use
the /clr switch and then over time you could convert/add managed code bit by
bit.
I have done this on my large C project and all compiles and links OK. So far
so good.
I have now added a managed C++ file to the project which needs to call some
of the existing code in the unmanaged C files. When I link this I get error
LNK1235.
This is referred to in
http://support.microsoft.com/default...b;en-us;822329
which says you cannot do this unless you compile the previous C code without
/clr.
As this is a large project I have turned off /clr on the project as a whole
and then set it on the new C++ managed file. Now I get a linker error
telling me there is an cannot find the external symbols of the functions I
am calling in the unmanaged C code and also if I try to add a Windows form
to the project (part of the purpose of doing all this), I get errors because
the project isn't set to use /clr.
Can ant one advise on the correct way if there is one of taking a large C
project and compiling/linking it so that I can add individual managed C+_
files and windows forms to it.
Thanks
Steve