This example demonstrates using SetOption to change run-time registry settings.
See How to Build the DAO Method Samples.
If you have installed the DAO SDK, see InstallDirectory\DAOSDK\SAMPLES\SetOption.cpp.