[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public struct TP_ISSUE_DATA { public Byte CardType; public Byte IssueCount; public UInt32 CID; public UInt32 Sum; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 50)] public string line1; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 50)] public string line2; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 50)] public string line3; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 50)] public string line4; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 50)] public string line5; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 50)] public string line6; } TP_ISSUE_DATA tpissue = new TP_ISSUE_DATA(); tpissue.CardType = 3; tpissue.IssueCount = 1; tpissue.CID = 1234; tpissue.Sum = 1000; tpissue.line1 = "Line 1"; tpissue.line2 = "Line 2"; tpissue.line3 = "Line 3"; tpissue.line4 = "Line 4"; tpissue.line5 = "Line 5"; tpissue.line6 = "Line 6"; if (TP_Open(Handle, 1) == 0) { int iInite = TP_Issue(tpissue); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)