c++ 写的dll 导出 函数 xx_send(char* buf,int size),在 c#中怎么用
在c#中,接受到的缓冲区buf,只能区一个byte的数据了,虽然size是正确的。网上查了查,说要转char*   为IntPtr,配合Marshal.PtrToStructure   等, 
 知道我朋友帮个忙 
 谢谢
------解决方案--------------------//Copy data buffer data to another buffer 
 		[DllImport( "Test.dll ",  CharSet=CharSet.Ansi)] 
 		private static extern bool CopyToBuffer(int dbHandle, 
 			IntPtr buff, 
 			int buffSize); 
 类似于这样
------解决方案--------------------[DllImport( "Test.dll ")] 
 public static extern void xx_send(byte[] buf,int size);