ÈçºÎÀûÓÃPro*CÖ±½Ó¶ÁÈ¡dbfÎļþ
ÔÌûµØÖ·£ºhttp://blog.csdn.net/Zerosir/archive/2004/10/02/123663.aspx
ΪÁËʹÓÃCÓïÑÔ±à³ÌÖ±½Ó¶ÁÈ¡dbfÎļþ£¬ÐèÒªÁ˽âdbfÎļþµÄ¶þ½øÖÆÎļþ¸ñʽ£¬ÏÂÃæ¸ø³ö¼òÒªµÄ˵Ã÷¡£
±íÎļþÓÉÍ·¼Ç¼¼°Êý¾Ý¼Ç¼×é³É¡£Í·¼Ç¼¶¨Òå¸Ã±íµÄ½á¹¹²¢°üº¬Óë±íÏà¹ØµÄÆäËûÐÅÏ¢¡£Í·¼Ç¼ÓÉÎļþλÖà 0 ¿ªÊ¼¡£Êý¾Ý¼Ç¼1½ô½ÓÔÚÍ·¼Ç¼֮ºó£¨Á¬ÐøµÄ×Ö½Ú£©£¬°üº¬×Ö¶ÎÖÐʵ¼ÊµÄÎı¾¡£
¼Ç¼µÄ³¤¶È£¨ÒÔ×Ö½ÚΪµ¥Î»£©µÈÓÚËùÓÐ×ֶζ¨ÒåµÄ³¤¶ÈÖ®ºÍ¡£±íÎļþÖд洢ÕûÊýʱµÍλ×Ö½ÚÔÚÇ°¡£
1£®±íÍ·¼Ç¼µÄ½á¹¹£º
×Ö½ÚÆ«ÒÆ ËµÃ÷
0 ÎļþÀàÐÍ
0x02FoxBASE
0x03FoxBASE+/dBASE III PLUS£¬ÎÞ±¸×¢
0x30Visual FoxPro
0x43dBASE IV SQL ±íÎļþ£¬ÎÞ±¸×¢
0x63dBASE IV SQL ϵͳÎļþ£¬ÎÞ±¸×¢
0x83FoxBASE+/dBASE III PLUS£¬Óб¸×¢
0x8BdBASE IV Óб¸×¢
0xCBdBASE IV SQL ±íÎļþ£¬Óб¸×¢
0xF5FoxPro 2.x£¨»ò¸üÔç°æ±¾£©Óб¸×¢
0xFBFoxBASE
1 - 3 ×î½üÒ»´Î¸üеÄʱ¼ä£¨YYMMDD£©
4 - 7 ÎļþÖеļǼÊýÄ¿
8 - 9 µÚÒ»¸öÊý¾Ý¼Ç¼µÄλÖÃ
10 - 11 ÿ¸öÊý¾Ý¼Ç¼µÄ³¤¶È£¨°üÀ¨É¾³ý±ê¼Ç£©
12 - 27 ±£Áô
28 ±íµÄ±ê¼Ç
0x01¾ßÓÐ .cdx ½á¹¹µÄÎļþ
0x02Îļþ°üº¬±¸×¢¡£
0x04ÎļþÊÇÊý¾Ý¿â£¨.dbc£©
Çë×¢Ò⣬Õâ¸ö×Ö½Ú¿ÉÒÔ°üº¬ÈκÎÉÏÃæÖµµÄºÍ¡£ÀýÈ磬0x03 ±íÃ÷±í¾ßÓнṹ»¯.cdxºÍÒ»¸ö±¸×¢×ֶΡ£
29 ´úÂëÒ³±ê¼Ç
30 - 31 ±£Áô£¬°üº¬ 0x00
32 - n ×Ö¶Î×ӼǼ
×ֶεÄÊýÄ¿¾ö¶¨ÁË×Ö¶Î×ӼǼµÄÊýÄ¿¡£±íÖÐÿ¸ö×ֶζ¼¶ÔÓ¦Ò»¸ö×Ö¶Î×ӼǼ¡£
n+1 Í·¼Ç¼ÖÕÖ¹·û£¨0x0D£©£¬n+2 µ½ n+264 ´Ë·¶Î§ÄÚµÄ 263 ¸ö×Ö½Ú°üº¬ºóÁ´ÐÅÏ¢£¨Ïà¹ØÊý¾Ý¿â (.dbc) µÄÏà¶Ô·¾¶£©¡£Èç¹ûµÚÒ»¸ö×Ö½ÚΪ 0x00£¬Ôò¸ÃÎļþ²»ÓëÊý¾Ý¿â¹ØÁª¡£Òò´ËÊý¾Ý¿âÎļþ±¾Éí×ÜÊÇ°üº¬ 0x00¡£
1 Í·¼Ç¼ÖÐµÄµÚ 8 µ½µÚ 9
¸ö×Ö½ÚָʾÊý¾ÝÎļþÖÐÊý¾ÝµÄÆðʼλÖá£Êý¾Ý¼Ç¼´Ó ³ý±ê¼Ç×Ö½Ú¿ªÊ¼¡£Èç¹û´Ë×Ö½ÚΪ ASCII ¿Õ¸ñ (0x20)£¬¸Ã¼Ç¼ûÓÐɾ³ý±ê¼Ç£¬
Èç¹ûµÚÒ»×Ö½ÚΪÐǺŠ(0x2A),¸Ã¼Ç¼ÓÐɾ³ý±ê¼Ç¡£ÔÚ±ê¼ÇÖ®ºóÊÇ×ֶμǼÖÐËùÃüÃû¸÷×Ö¶ÎÖеÄÊý¾Ý
2£®×Ö¶Î×ӼǼ½á¹¹
×Ö½ÚÆ«ÒÆ ËµÃ÷
0 - 10 ×Ö¶ÎÃû£¨×î¶à 10 ¸ö×Ö·û -ÈôÉÙÓÚ 10 ÔòÓÿÕ×Ö·û (0x00) Ìî³ä£©
11 ×Ö¶ÎÀàÐÍ
C-×Ö·ûÐÍ
Y-»õ±ÒÐÍ
N-ÊýÖµÐÍ
F-¸¡µãÐÍ
D-ÈÕÆÚÐÍ
T-ÈÕÆÚʱ¼äÐÍ
B-Ë«¾«¶ÈÐÍ
I-ÕûÐÍ
L-Âß¼ÐÍ
M-±¸×¢ÐÍ
G-ͨÓÃÐÍ
C-×Ö·ûÐÍ£¨¶þ½øÖÆ£©
M-±¸×¢ÐÍ£¨¶þ½øÖÆ£©
P-ͼƬÐÍ
12 - 15 ¼Ç¼ÖиÃ×ֶεÄÆ«ÒÆÁ¿
16 ×ֶγ¤¶È£¨ÒÔ×Ö½ÚΪµ¥Î»£©
17 СÊýλÊý
Ïà¹ØÎĵµ£º
Delphi Óë C/C++ Êý¾ÝÀàÐͶÔÕÕ±í
DelphiÊý¾ÝÀàÐÍC/C++
ShorInt
8λÓзûºÅÕûÊý
char
Byte
8λÎÞ·ûºÅÕûÊý
BYTE,unsigned short
SmallInt
16λÓзûºÅÕûÊý
short
Word
16λÎÞ·ûºÅÕûÊý
unsigned short
Integer,LongInt
32λÓзûºÅÕûÊý
int,long
Cardinal,LongWord/DWORD
32λÎÞ·ûºÅÕûÊý
unsigned long
Int6 ......
½ñÌìÈ¥ÃæÊÔÒ»¼Ò¹«Ë¾£¬ÌîÁËÒ»·Ý“»§¿Úµ÷²é”£¬È»ºó¾ÍÊÇ×öÒ»·ÝÃæÊÔÌ⣬ÌâÄ¿ºÜ¼òµ¥
1¡¢¸Ä´íÌ⣬¸øÒ»¶Î³ÌÐò£¬Ö¸³ö´íÎó
2¡¢Socket×èÈûºÍ·Ç×èÈû±à³Ì£¬·Ç×èÈûµÄʵÏÖÔÀí
3¡¢TCP/IPÓëOSIÆß²ãÄ£ÐÍ
TCP/IP²Î¿¼Ä£Ð͹²ÓÐÎå²ã£ºÓ¦Óò㡢´«Êä²ã¡¢»¥ÁªÍø²ãºÍÖ÷»úÖÁÍøÂç²ã¡£
ÓëOSI²Î¿¼Ä£ÐÍÏà±È£¬TCP/IP²Î¿¼Ä£ÐÍûÓбíʾ²ãºÍ» ......
±àÕß°´:·Ç³£»ù±¾¹ØÓÚCÓïÑÔµÄÎÊÌâ,Ò»¸öÐÅÏ¢Àà(¼ÆËã»ú,×ÊѶ¹¤³Ì,µç×Ó¹¤³Ì, ͨÐÅ
¹¤³Ì)רҵµÄ±¾¿Æ±ÏÒµÉúÓ¦¸Ã´ïµ½µÄˮƽ¡£ÌâÄ¿²»ÄÑ,È«²¿¶¼ÄÜ¿ìËٵشðÍ꣬µ±È»Ò²ÐèÒª
Ò»¶¨µÄ֪ʶ´¢±¸¡£
¶ÔÓÚ´ó¶àÊýÈË£¬ÎÒÃÇÔ¤ÆÚÄã¿ÉÄÜ´ð´í 1) 4) 15)Ì⣬ËùÒÔ´ð´í3µÀÒÔÄڵģ¬ÎÒÃÇÈÏΪ
ÄãºÜ°ô
´ð´í5µÀÌâÒÔ ......
## Á¬½Ó·ûÓë# ·û
¡¡¡¡## Á¬½Ó·ûºÅÓÉÁ½¸ö¾®ºÅ×é³É£¬Æ书ÄÜÊÇÔÚ´ø²ÎÊýµÄºê¶¨ÒåÖн«Á½¸ö×Ó´®(token)Áª½ÓÆðÀ´£¬´Ó¶øÐγÉÒ»¸öеÄ×Ó´®¡£µ«Ëü²»¿ÉÒÔÊǵÚÒ»¸ö»òÕß×îºóÒ»¸ö×Ó´®¡£ËùνµÄ×Ó´®(token)¾ÍÊÇÖ¸±àÒëÆ÷Äܹ»Ê¶±ðµÄ×îСÓï·¨µ¥Ôª¡£¾ßÌåµÄ¶¨ÒåÔÚ±àÒëÔÀíÀïÓÐÏ꾡µÄ½âÊÍ£¬µ«²»ÖªµÀÒ²ÎÞËùν¡£Í¬Ê±ÖµµÃ×¢ÒâµÄÊÇ#Á¬½Ó·ûÊÇ°Ñ´«µÝ¹ý ......
¼òÊö
Ò» ÁÐÎļþÇåµ¥
¶þ£ºÖ´ÐгÌÐò
Èý£ºÏÔʾÊý¾Ý
ËÄ£º¶Ïµã(breakpoint)
Î壮¶ÏµãµÄ¹ÜÀí
Áù£®±äÁ¿µÄ¼ì²éºÍ¸³Öµ
Æß. µ¥²½Ö´ÐÐ
°Ë£®º¯ÊýµÄµ÷ÓÃ
&nb ......