This example creates ODBC and Microsoft Jet Workspace objects, enumerates the two Workspaces collections, and then enumerates their properties.
See How to Build the DAO Method Samples.
On the MSDN Library discIf you have installed the DAO SDK, see Samples\dbdaoInstallDirectory\DAOSDK\SAMPLES\CreateWorkspace.cpp.