摘要:
C++(Win 32)C#char**作为输入参数转为char[],通过Encoding类对这个string[]进行编码后得到的一个char[]作为输出参数转为byte[],通过Encoding类对这个byte[]进行解码,得到字符串C++ Dll接口:void CplusplusToCsharp(in char** AgentID, out char** AgentIP);C#中的声明:[DllImport("Example.dll")]public static extern void CplusplusToCsharp(char[] AgentID, byte[] A 阅读全文
posted @ 2012-06-05 15:18
DoubleLi
阅读(3939)
评论(0)
推荐(1)

浙公网安备 33010602011771号