This example creates three new Field objects, and then enumerates their properties.
See How to Build the DAO Method Samples.
If you have installed the DAO SDK, see InstallDirectory\DAOSDK\SAMPLES\CreateField.cpp.