tsract said:
Is there a way to link a static lib I built using Visual Studio 2008
into a Visual Studio 2005 project.
Recompiling the Visual Studio 2008 code is something we're trying to
avoid.
Sure. Just include it in the link. Of course, successful linking is only
part of the problem - you'd probably like the code to work, too!
Whether you can successfully take a 2008 .lib and link it with other code
from 2005 will depend on what's in the library. Specifically, if it makes
any use at all of the C++ standard library, MFC or ATL, there's a chance -
maybe a good chance - that it won't work. On the other hand, if it's 100%
pure C++ or C code that doesn't depend on any VC++ libraries, there's a
pretty good chance that it will "just work".
Bottom line: there are no guarantees, but it might work.
-cd