This example describes a function which calls the MakeReplica method to create a replica of the specified database.
See How to Build the DAO Method Samples.
If you have installed the DAO SDK, see InstallDirectory\DAOSDK\SAMPLES\MakeReplica.cpp.