📄 crd.htm
字号:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>cardfile file format</title>
<meta name="generator" content="microsoft frontpage 3.0">
</head>
<body background="../jpg/di1.JPG">
<p align="center"><font size="6" color="#0000ff">cardfile file format</font></p>
<div align="center"><center>
<table border="0" width="88%">
<tr>
<td width="100%"><br>
microsoft applications note<br>
cardfile file format<br>
<br>
the cardfile file format is as follows:<br>
<br>
byte # description<br>
<br>
0 - 2 "signature bytes --- always ""mgc"" (4d
47 43) " <br>
3 - 4 number of cards in file <br>
<br>
beyond the first five bytes are the index lines --- the<br>
information about the top line of each"card. the first<br>
index entry begins at byte #5 in the file, and successive<br>
entries begin 34 bytes after the beginning of the last index<br>
entry (the second entry at byte #39, the third entry at byte<br>
#6d, etc.). the format for each index line entry is as<br>
follows: <br>
<br>
0 - 5 null bytes, reserved for future use (should all be 00)<br>
6 - 9 absolute position of card data in file <br>
a flag byte (00) <br>
b - 32 index line text <br>
33 null byte ; indicates end of index entry <br>
<br>
after the last index entry, each card's data is stored. <br>
card data will be in one of four general formats: graphic<br>
and text, text only, graphic only, and blank. blank cards<br>
consist of four null bytes; the other card formats are<br>
below:<br>
<br>
graphic text graphic <br>
& text only only <br>
0 - 1 0 - 1# 0 - 1 length of graphic
bitmap. #<br>
2 - 3 * 2 - 3 width of
graphic. *<br>
4 - 5 * 4 - 5
height of graphic. *<br>
6 - 7 * 6 - 7
x-coordinate of graphic. *<br>
8 - 9 * 8 - 9
y-coordinate of graphic. *<br>
a - x * a - x
bitmap of graphic. * <br>
x+1 - x+2 2 - 3 x+1 - x+2#length of text entry. # <br>
x+3 - y 4 - z * text. *
<br>
<br>
x = 9 + length of bitmap <br>
# - bytes are null if no bitmap/text<br>
y = x + 2 + length of text entry <br>
* - bytes don't exist if no bitmap/text <br>
z = 3 + length of text entry <br>
<br>
the first byte of any card's data entry is pointed to by<br>
bytes 6-9 in the index entry. note that no null byte is<br>
used to indicate the end of the card's data entry; the next<br>
card's data entry immediately follows the last byte of the<br>
previous entry, which will be null only if the previous card<br>
has no text (null length of text entry).<br>
<br>
all numbers in this document, including those in the<br>
descriptive text, should be interpreted as hexadecimal<br>
numerals. all data pointers and count bytes in the file are<br>
unsigned binary/hexadecimal integers in least- to most<br>
significant format. all text in the file is saved in low<br>
ascii format. in the text section of a card's data, <cr> is<br>
always followed by <lf>.<br>
<br>
</td>
</tr>
</table>
</center></div>
<p align="center"><a href="../index.htm">返回</a></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -