更新时间:2023-02-12 16:38:18
您不能将非托管DLL作为对托管C ++项目的引用。你只能使用托管DLL。你所做的就是链接到非托管DLL,就像链接到非托管C ++项目中的非托管DLL一样:
You cannot add the unmanaged DLL as a reference to your managed C++ project. You can only do that with managed DLLs. What you do instead is link to the unmanaged DLL in the same way as you link to an unmanaged DLL in an unmanaged C++ project: