7,540
社区成员
发帖
与我相关
我的任务
分享
[StructLayout(LayoutKind.Sequential)]
struct DICST_Before_Run_Data
{
public UInt16 RunID;
public UInt16 ParaSize;
public byte[] Para ;
}
[StructLayout (LayoutKind.Sequential)]
struct DICST_After_Run_Data
{
public UInt16 ResultSize;
public byte[] Result ;
}
[DllImport("Nr6Cli.dll", CharSet = CharSet.Unicode, SetLastError = true)]
static extern int DICNet_Command(uint handle, int cmd, [MarshalAs(UnmanagedType.LPStruct)] object pData);
//在unSafe下用指针也不行,提示无法创建指向结构体的指针