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

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

posted @ 2015-05-13 09:39  一起经历  阅读(360)  评论(0编辑  收藏  举报