In a simple test project, I have two C++ compiled dlls
NonClrDll: A regular C++ dll (non /clr
)
Wrapper: A /clr
compiled dll that is only unmanaged (native) code for now
To use the NonClrDll in a C++ client project, all I have to do is include a reference to the dll project and the appropriate header code (as described here). However, to use the /clr
compiled wrapper dll, I have to also add the .lib file as an additional dependency (as described here). My questions are...
/clr
compiled wrapper?I believe it is because the C++/CLI Project has the linker setting "IgnoreImportLibrary" defaulted to "Yes" and the native C++ Project it is defaulted to "No".