摘要: WPF运行在CLR上的,它的代码是托管代码。C++编写的DLL代码是非托管的。在WPF中调用C++编写的DLL代码需要使用:using System.Runtime.InteropServices; [DllImport("Dll.dll", EntryPoint = "add",CallingConvention=CallingConvention.Cdecl)] public static extern int add(int a, int b);下面详细说明之。编译生成DLL文件在Visual Studio 2010中,File --> Ne 阅读全文
posted @ 2011-07-26 11:08 JarvisChu 阅读(340) 评论(0) 推荐(0) 编辑