Can a C ++ dll compiled using Visual Studio 2008 be used with Visual Studio 2005?

I am going to work with a C ++ library written in simple C ++ (not .NET and without MFC). The library is available using both Visual Studio 2005 / Intel Fortran 9.1 and VS 2008 / Intel Fortran 10.1.

Obviously, I'm going to grab the binaries for VS 2008 since the environment is on my computer, but I'm curious if there are reasons why the direct C ++ library would not be compatible between VS 2005 and 2008. I would assume that the change the name will be the same, but there may be other reasons. I haven't used C ++ for a long time, so I'm a little rusty when it comes to these things.

+3
source share
3 answers

The biggest problem you will encounter is using CRT. If CRT (C RunTime) is statically linked to a DLL, you should have no problem.

However, if the CRT is dynamically linked to the project, you may run into problems. Visual Studio 2005 and 2008 use different versions of CRT, and they cannot be easily downloaded. But if one or both DL libraries statically link CRTs, you should be in decent shape.

+2
source

. DLL, VS 2005, C (VS) VS 2005 (msvcr80.dll), VS 2008 C (msvcr90.dll). , C , , .

+3

, .

, - . ++, , .

, , 2005 2008 . , , VS2008 DLL , DLL. "" factory DLL .

DLL VS 2008, , VS 2005, , . , .

+3

Source: https://habr.com/ru/post/1714171/


All Articles