Dynamic link library does not generate a .lib file when compiled (Visual Studio C++ Express)
Here is some sample code that demonstrates how to correctly export a class. Pay attention to the CONSOLETEST_EXPORT macro. This is the missing part of your solution. You need to define this macro in your DLL project, and leave it undefined in the projects that reference this dll. // MAIN.CPP – TestApplication #include <iostream> #include … Read more