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

时间:2015-05-13 10:03:09   收藏:0   阅读:112

[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);

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!