>I have a library that I'm creating with VS2005 but I need to be able to
>link it with a VS6 project. I am getting some linker errors, mostly
[quoted text clipped - 4 lines]
>
>Am I trying to do the impossible?
Not impossible Mike, but to do it you'd have so many restrictions
(eliminate most references to the 'C' run-time library) as to make it
almost worthless.
>Can I create a lib in VC8 and link it with a VC6 project?
You could create a DLL and use it from VC6 providing that the
interface doesn't pass heap allocated objects across the boundary.
i.e. stick to plain old data types and it'll work.
Dave

Signature
MVP VC++ FAQ: http://www.mvps.org/vcfaq
MikeD - 09 Nov 2005 21:15 GMT
Thanks David. I'm wondering how to get rid of the few references to th
CRT that exist. It seems to only be the two I listed: _ftol2_sse an
CxxFrameHandler3. I'm willing to bet if I get rid of exceptio
handling that the CxxFrameHandler3 problem will go away but I have n
idea how to get rid of the _ftol2_sse reference. I'm not using i
directly, it is being referenced by the compiler since my C++ clas
does do some floats to longs. I guess I'm wondering if there's a wa
to pull in _ftol2_sse from somewhere and include it in the lib or i
there a way to get the compiler to stop referencing it and eithe
inline or use something else?
Any ideas?
BTW, a DLL isn't a valid option for this particular lib. It is used i
almost every project we write
--
Mike