The first example uses CompactDatabase to create a compact version of the Northwind database that uses the Korean language collating order. The second example uses CompactDatabase to create a compact and encrypted Microsoft Jet 2.0 version of a Microsoft Jet version 1.1 database.
See How to Build the DAO Method Samples.
On the MSDN Library discIf you have installed the DAO SDK, see Samples\dbdaoInstallDirectory\DAOSDK\SAMPLES\CompactDatabase1.cpp and CompactDatabase2.cpp.