Click to See Complete Forum and Search --> : How to create a simple *.dbf file ?


Alan B.
June 9th, 1999, 09:42 AM
Does anybody knows how to simply create a *.dbf (dBaseIII+) file, using code in VC++ 6.0 ?
I need to create the file, put the column headers and then put the datas. Is there an easy way with a command like "printf" ?
Thanks in advance for your help.

Alan

June 9th, 1999, 11:14 PM
You can use odbc api
SQLExecDirect(hstmt ,string,SQL_NTS) to create a *.dbf file.
the string is a sql command such as "create table...".

Alan B.
June 10th, 1999, 09:16 AM
Where can I find such examples ? Do you have any examples you can send to me ?