首页 > 编程语言 > 详细

C#中调用C++动态库的函数

时间:2015-05-13 10:01:19      阅读:256      评论:0      收藏:0      [点我收藏+]

[System.Runtime.InteropServices.DllImport("DebugToolWin",CallingConvention=CallingConvention.Cdecl)]

//该语句是引入非托管代码程序集
public static extern bool DebugOutStr(string strValue);

[System.Runtime.InteropServices.DllImport("DebugToolWin",CallingConvention=CallingConvention.Cdecl)]
public static extern bool DebugOutStrAndTime(string strValue);

C#中调用C++动态库的函数

原文:http://www.cnblogs.com/lishennan/p/4499435.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!