public static int ReadCard(ref string strAssCardNo) { Card.M1CardClass m1 = new M1CardClass(); return(m1.ReadCard(ref strAssCardNo)); }
//[DllImport("Card.dll", EntryPoint = "PutCard", SetLastError = true, // CharSet = CharSet.Auto, ExactSpelling = false, // CallingConvention = CallingConvention.StdCall)] //public static extern int PutCard(string strAssCardNo); //[DllImport("Card.dll", EntryPoint = "ReadCard", SetLastError = true, // CharSet = CharSet.Auto, ExactSpelling = false, // CallingConvention = CallingConvention.StdCall)] //public static extern int ReadCard(ref string ReadCard); public static int PutCard(string strAssCardNo) { Card.M1CardClass m1 = new M1CardClass(); return(m1.PutCard(strAssCardNo)); }