{ cdbfapiPlus* dbf = cdbfapiCreate(); if (!dbf) return; if (openDBFFile(dbf, "c:\\tmp\\example.dbf")) { // your code closeDBFFile(dbf); } cdbfapiRelease(dbf); }