Thanks for your help! But maybe, I must say sorry that I do not make you understand my question clearly. I do want the method and steps to get the new records from the database table with ADO, for instance, at first I know I must create a connection to the database with the function ADODB::Open(), but what can I do afterwards? My idea is opening a record set in a RecordsetPtr object directly, and then checking whether there is new record inserted to determine the program's action. Certainly I have to close the record set at last. This is a circle. In the next circle in 30 seconds, I repeat the process above from opening a record set as begining. Okay, that's my opinion, I wonder that whether it's correct or not. If not, could you please show me a appropriate solution? Very sorry for typing the words in English, as my computer doesn't work in Chinese. My appreciation for every one post his words here!
更简单地就是在表中增加一个已扫描标志和已扫描时间,insert时置空,扫描完了再赋值。
I do want the method and steps to get the new records from the database table with ADO, for instance, at first I know I must create a connection to the database with the function ADODB::Open(), but what can I do afterwards? My idea is opening a record set in a RecordsetPtr object directly, and then checking whether there is new record inserted to determine the program's action. Certainly I have to close the record set at last. This is a circle. In the next circle in 30 seconds, I repeat the process above from opening a record set as begining. Okay, that's my opinion, I wonder that whether it's correct or not. If not, could you please show me a appropriate solution?
Very sorry for typing the words in English, as my computer doesn't work in Chinese.
My appreciation for every one post his words here!