Home > Software engineering > VC6 project by implicitly link to invoke a derived class of dynamic link library (VS2015 version)
VC6 project by implicitly link to invoke a derived class of dynamic link library (VS2015 version)
Time:11-10
existing A VC6 project, A dynamic link library (VS2015 version) BA in the form of implicit link (you need to import the library files and DLL) call interface, B Compile the project A, tip error: cannot resolve the external symbol, in VC6 project, interface name, cannot distinguish between B
Dynamic link library interface is a class B export, the export way are as follows:
morning found on the Internet, seems to be due to the different versions of the compiler ABI (binary interface) caused by incompatible, Can use the factory function method to solve this problem, (see: https://eli.thegreenplace.net/2011/09/16/exporting-c-classes-from-a-dll/)
My question is: In VC6 project by implicitly link to invoke dynamic link libraries provide the class interface, B will fail? Thank you for guidance communication
CodePudding user response:
No implicit link of this statement, only the static and dynamic links, you should be a static link, static link in version inconsistent situation is likely to fail, but usually can be successful, only DLL export is correct