在C#中调用C++编写的dll
摘要:
有C++dll,实现了int Sum(int a,int b);则在C#中可以这样使用:View Code 1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 5 using System.Runtime.InteropServices;//引入dll文件中的函数 6 7 namespace ConsoleDllDemo 8 { 9 class Program10 {11 //引入dll文件中的函数12 [DllImport("dllDemo.dl... 阅读全文
posted @ 2012-08-03 14:53 ActiveChange 阅读(159) 评论(0) 推荐(0) 编辑