This example queries for a first and last name and adds them as a new record to the Employee database.
See How to Build the DAO Method Samples.
If you have installed the DAO SDK, see InstallDirectory\DAOSDK\SAMPLES\AddNew.cpp.