FieldInfo fInfo;
table.GetFieldInformation(fInfo);
int count = 0;
fInfo.GetFieldCount(count);
wstring fieldNames = L"";
for (int x = 0; x < count; x++)
{
wstring f = L"";
fInfo.GetFieldName(x, f);
fieldNames.append(f);
FieldType fType;
fInfo.GetFieldType(x, fType);
fieldNames.append(L", ");
}
wcout << fType << endl;
enum FieldType
{
fieldTypeSmallInteger = 0,
fieldTypeInteger = 1,
fieldTypeSingle = 2,
fieldTypeDouble = 3,
fieldTypeString = 4,
fieldTypeDate = 5,
fieldTypeOID = 6,
fieldTypeGeometry = 7,
fieldTypeBlob = 8,
fieldTypeRaster = 9,
fieldTypeGUID = 10,
fieldTypeGlobalID = 11,
fieldTypeXML = 12,
};