This design is to use ADO to connect to the database, to do a check on work attendance system based on RFID, implemented by clicking on the button tag information read as an employee id, can choose the employee name in the name bar, now want to read the label after can call database automatically fill name column, instead of the previous manual selection (read the tag functionality is implemented), how to implement??? !!!!!!!!! Posting questions for the first time, it's possible description is not in place, have what problem please inclusion
CodePudding user response:
1, initialization, all staff name found in the database, and then call CCombox: : AddString () join the combination control (also known as "personnel name" corresponds to the control) 2, when RFID reader to an id, then from the database to find this id corresponding name 3, according to find the names, called CCombox: : SetCurSel (CCombox: : FindString (1, name))