when writing software, the dynamic link library under the Window System requires registration to be used. For example, under the Win XP system to run the ADO program, you need to register REGTLIBV12 msado60_backcompat_i386.tlb in the current directory .
Because the software is used for the first time, a fixed ancestral information operation is required. This is where the registration information can be placed in a batch file, and when the software is run for the first time, the batch file is run to enable the registration of the information.
Copy Msado15.dll and msado60_backcompat_i386 to the current directory
Then create a TXT file, change the suffix name to "first start software. bat" and write the following statement in the batch file.
regsvr32 msado15.dll
regsvr32 msado60_backcompat_i386.tlb
When the application is first run, click on the program, run the batch program, implement the ADO program registration.
Use a batch file to complete registration information