BOOL createTable(char* filename);

Function createTable() creates a new table. You have to prepare the structure with prepareNewTable and addField.
Another function allows you to create and open the table right away after creation.

BOOL createAndOpenTable(char* filename);


// if (dbf->prepareNewTable(5, 512, "dBase7driver"))
if (dbf->prepareNewTable(0))
{
    dbf->addField("ID", 'N', 10);
    dbf->addField("NAME", 'C', 20);
    dbf->addField("BIRTH", 'D', 8);
    dbf->addField("WEIGHT", 'N', 10, 2);

    // if (dbf->createAndOpenTable("testfile.dbf")) 
    if (dbf->createTable("testfile.dbf")) 
        printf("OK\n");
    else
        printf("Error\n");
}