110,538
社区成员
发帖
与我相关
我的任务
分享
[StructLayout(LayoutKind.Sequential)]
public struct BarcodeInfo
{
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 16)]
public string ShowContent;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 16)]
public string BarcodeContent;
};
[DllImport("LabelPrint.dll", CharSet = CharSet.Ansi]
public static extern int PrintBarCode(ref BarcodeInfo pBatchInfo,[In,Out]BarcodeInfo[] pBarcodeinfoArray,int size);