⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dbfstruct.h

📁 一个DB文件读取工具,最终转换CSV文件的代码.. 很有参考价值 作者:tanis
💻 H
字号:
#ifndef __DBFSTRU
#define __DBFSTRU
//DBASE header structure
typedef struct{
     unsigned char    db;             // file flag
     unsigned char    year;
     unsigned char    month;
     unsigned char    day;
     unsigned char    recTotal[4];        // number of records in file    i~,;~~
     unsigned char   headLength[2];     // 3~4~~, ~_~~,~ (32bits) ~D~fiJ~K~
     unsigned char    recLength[2];       // number of bytes in record    i~~
     unsigned char    other[20];          // other stuff, ~zzj~
}DBFHEAD;

//DBASE field structure
typedef struct{
	unsigned char name[11];           // field name, ~~
	unsigned char type;             // field type, -~J~
	unsigned char fieldoffset[4];    // your guess is as good as mine, -~]~J~t~i~i~
	unsigned char length;            // field length , -~J~~
	unsigned char decimal;            // decimal positions if numeric, d~[~J4~
	unsigned char other[14];         // other stuff??, ~~
}DBFFIELD;




typedef struct{
	 char name[16];
	BOOL     mDelFlag;
	UINT     index;

}INDEXTAB;
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -