This example demonstrates the PopulatePartial replication method in conjunction with the SetReplicaFilter property and the Synchronize method.
See How to Build the DAO Method Samples.
If you have installed the DAO SDK, see InstallDirectory\DAOSDK\SAMPLES\PopulatePartial.cpp.