1、m_strConnect.Format(TEXT("Driver={Microsoft dBASE Driver (*.dbf)}; DriverID=277;Dbq=%s;"),Path); 

      Path 是dbf文件的目录,存在的问题创建dbf,只有string 类型。
2、 m_strConnect.Format(TEXT("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=%s;Extended  Properties=dBASE III "),szPath); 

 可以创建numeric类型的字段,长度目前发现不可以设置。其中,根据数据库版本不同,Extended Properties 可为 dBASE IV、dBASE 5.0、dBASE III、FoxPro 2.0、FoxPro 2.5、FoxPro 2.6、FoxPro 3.0等。

相关文章:

  • 2021-10-03
  • 2021-06-11
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
猜你喜欢
  • 2022-12-23
  • 2021-12-19
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
相关资源
相似解决方案