Question

If a 3rd-party developer gives us .libs and/or .dlls generated with VC++ 2005, can they be used in VC++ 2008? What about if he compiles with 2008 Pro, and we run 2008 Standard/Express?

I know C++ is not as portable as it used to be, what with VC++ runtimes and so on, but I'd like to think at least we can use pre-existing libraries/dlls in a newer version of VC++.

Was it helpful?

Solution

You won't be able to use 2005 .libs with 2008 - they link to different runtime libraries and the object layout and vtable structure may be slightly different.

You may be able to use .dlls between different versions, but it very much depends on the interface of the .dll. If it exports classes or methods the take classes as parameters or return them, then probably not.

OTHER TIPS

With regard to the 2008 Pro vs 2008 Standard/Express edition question, the code that these generate is 100% compatible. I've started projects on Pro and then continued developing them on Express and vice versa.

The binaries produced by the various 2008 editions will be compatible. All that changes is the functionality available in the IDE.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top