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

📄 crd.htm

📁 各种文件格式说明及程序描述
💻 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 #&nbsp;&nbsp;&nbsp; description<br>
<br>
0 - 2&nbsp;&nbsp;&nbsp; &quot;signature bytes --- always &quot;&quot;mgc&quot;&quot; (4d
47 43) &quot;&nbsp;&nbsp;&nbsp; <br>
3 - 4&nbsp;&nbsp;&nbsp; number of cards in file <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
beyond the first five bytes are the index lines --- the<br>
information about the top line of each&quot;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&nbsp;&nbsp;&nbsp; null bytes, reserved for future use (should all be 00)<br>
6 - 9&nbsp;&nbsp;&nbsp; absolute position of card data in file&nbsp;&nbsp;&nbsp;&nbsp; <br>
a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; flag byte (00) <br>
b - 32&nbsp;&nbsp;&nbsp; index line text <br>
33&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
graphic&nbsp;&nbsp;&nbsp; text&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; graphic <br>
&amp; text&nbsp;&nbsp;&nbsp; only&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; only <br>
0 - 1&nbsp;&nbsp;&nbsp; 0 - 1#&nbsp;&nbsp;&nbsp; 0 - 1&nbsp;&nbsp;&nbsp; length of graphic
bitmap. #<br>
2 - 3 *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2 - 3&nbsp;&nbsp;&nbsp; width of
graphic. *<br>
4 - 5&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4 - 5
&nbsp;&nbsp;&nbsp; height of graphic. *<br>
6 - 7&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6 - 7
&nbsp;&nbsp;&nbsp; x-coordinate of graphic. *<br>
8 - 9&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8 - 9
&nbsp;&nbsp;&nbsp; y-coordinate of graphic. *<br>
a - x&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a - x
&nbsp;&nbsp;&nbsp; bitmap of graphic. *&nbsp;&nbsp;&nbsp; <br>
x+1 - x+2&nbsp;&nbsp;&nbsp; 2 - 3 x+1 - x+2#length of text entry. #&nbsp;&nbsp;&nbsp; <br>
x+3 - y&nbsp;&nbsp;&nbsp;&nbsp; 4 - z&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp; text. *
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
x = 9 + length of bitmap <br>
# - bytes are null if no bitmap/text<br>
y = x + 2 + length of text entry&nbsp;&nbsp;&nbsp;&nbsp; <br>
* - bytes don't exist if no bitmap/text&nbsp;&nbsp;&nbsp; <br>
z = 3 + length of text entry&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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, &lt;cr&gt; is<br>
always followed by &lt;lf&gt;.<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 + -