Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的第一次 P-Invoke 试用,我正在尝试从 C# 代码调用 C++ 函数。我在VS 2010中通过win 32控制台应用程序项目创建了一个c++ DLL。我写的代码如下所示:
然后我创建了 ac# 控制台应用程序项目并将 c++ dll 和 pdb 文件复制到 bin 文件夹中。这是我的 c# 程序,它会引发图像中显示的错误:
我不确定我在这里做错了什么。谢谢。
VVV