首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > C#中调用VC++的DLL

C#中调用VC++的DLL

  • 资源大小:6.98M
  • 上传时间:2021-07-22
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: C#语言基础

资 源 简 介

   [DllImport("diaCallBackDll.dll")]        public static extern void show();        [DllImport("diaCallBackDll.dll", CallingConvention = CallingConvention.StdCall)]        public static extern int add_CallBack_test(int a, int b, cb_func f);        public static void cb_funcc(int re)        {            Console.WriteLine("result=[{0}]", re);            return;        }        static void Main(string[] args)        {            //show();           int i =  add_CallBack_test(7, 2, cb_funcc);            Console.Read();        }
VIP VIP
0.196013s