https://cpdb.ppcompiler.org/
Introduction
In the current version, 4 types of fields are supported :
Read a string field
Use the following example :
Err err; |
Important : the CPDB_ReadString function allocate the memory for you, so you must free this memory after use.
Read a numeric field
Use the following example :
Short integer :
Int8 int8;
err = CPDB_ReadShortInt(hOREST, "FIELDNAME", &int8);
Int16 int16;
err = CPDB_ReadInt(hOREST, "FIELDNAME", &int16);
Int32 int32;
err = CPDB_ReadLongInt(hOREST, "FIELDNAME", &int32);
More information