/// <summary>
/// 结构体定义
/// </summary>
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = 4)]
public class JSSJ_PlateIDConfig
{
/// <summary>
/// aaa
/// </summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 36)]
public string aaa; /// <summary>
/// bbb
/// </summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 9)]
public string bbb;
} public delegate int jskSDK(IntPtr pPlateConfig);//调用
jskSDK(pPlateConfig);
JSSJ_PlateIDConfig jssj = (JSSJ_PlateIDConfig)Marshal.PtrToStructure(pPlateConfig, typeof(JSSJ_PlateIDConfig));
/// 结构体定义
/// </summary>
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = 4)]
public class JSSJ_PlateIDConfig
{
/// <summary>
/// aaa
/// </summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 36)]
public string aaa; /// <summary>
/// bbb
/// </summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 9)]
public string bbb;
} public delegate int jskSDK(IntPtr pPlateConfig);//调用
jskSDK(pPlateConfig);
JSSJ_PlateIDConfig jssj = (JSSJ_PlateIDConfig)Marshal.PtrToStructure(pPlateConfig, typeof(JSSJ_PlateIDConfig));
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货