dbfstruct.h
来自「一个DB文件读取工具,最终转换CSV文件的代码.. 很有参考价值 作者:ta」· C头文件 代码 · 共 34 行
H
34 行
#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 + =
减小字号Ctrl + -
显示快捷键?