C ++ is a lot different than C # / VB.Net when it comes to handling DLL links. In C #, all that is needed to execute a link is a DLL, because it contains metadata describing the structures that lie inside. The compiler can read this information so that it can be used from another project.
C ++ has no concept of metadata in a DLL in the sense that C # does. Instead, you should explicitly provide metadata in the form of a header file. These files are included in your C ++ project, and then the DLL is delayed at runtime. You actually do not add a link, so to speak, in C ++, but instead include a header file.
Once the header file is included, you can access the namespace by including it in your CPP files
using namespace SomeNamespace;
source share