Can VC6 call the dynamic library compiled by VS2015?

problem description

libtest.dll, a dynamic library compiled by vs2015, is reported missing from runtime140.dll in VC6. Can"t a dynamic library compiled by a higher version of vs run in a lower version

the environmental background of the problems and what methods you have tried

after finding the relevant solutions on the Internet, changing the project configuration-- basic run-time check-- to default, it is still invalid.

Apr.03,2021

No, as long as it is dynamically linked, you need the corresponding version of the dynamic link library, or you can modify the project settings and use static links, so that you no longer rely on external dynamic link libraries, but the disadvantage is that the executable file will be much larger.


No, different versions cannot be mixed. https://mp.weixin.qq.com/s/6e.


if you export a C interface, it is theoretically feasible. The lack of vcruntime140 is obviously a vcPP runtime without vs2015, which will not run naturally without it.

if the export is of course a CPP class. That's probably close.

  • Turn to Vector for memory leak problem!

    recently I re-came up with an algorithm in an item I wrote before, which was encapsulated into a .h file for calling, but there was a problem when I took it out and used it alone. The culprit of the problem is the Vector variable. Because of the projec...

    Jan.22,2022
Menu