Link: msdn for VB6 and vc6 I searched the internet for a long time for a collection of Microsoft Help documents, including hhcolreg. dat and *. Col files. So I analyzed the two files myself. (The objective is to copy the sql80.col help set in the XP system to the win7 system, and the result is also achieved .) _________________________________________________________________________________________________ Msdn for vs6 *. Col help document collection file Interpretation
Yurenchen _________________________________________________________________________________________________ *. CHM is the help document. *. CHW is the help document index cache file. *. Chi is a help document directory file (most *. chm documents are integrated with directories, and some are classified) * The Col file is a collection of Microsoft Help documents (the content is XML). It can be opened with hh.exe, which defines the bibliography included in the collection and the tree structure of the collection. Hhcolreg. dat (the content is XML) exists in the % WinDir % \ HELP \ and % allusersprofile % \ Microsoft \ HTML Help \ folders. Files can be stored in any of these two folders, with the same effect. * The Col file defines the bibliography contained in the document set, but does not define the specific path of each book. Therefore, when the help document is not installed, open it directly. * The. Col file cannot be opened. * The specific information Definition of the book referenced in. Col is defined in the hhcolreg. dat file. ____________________________________ ① *. Col file structure. Assume the file name is XXXX. Col. <XML> <Htmlhelpcollection> <Collectionnum value = ccpc3/> set number <Folders> <Folder> <Titlestring value = "dddd"/> directory title <Folderorder value = eeee/> Directory No. </Folder> </Folders> </Htmlhelpcollection> </XML> (Some unnecessary elements (elements that can still be opened in the document after deletion, the same below) are deleted) ____________________________________ ② Hhcolreg. dat file structure <XML> <Htmlhelpdocinfo> <Collections> all opened *. Col files are listed here (this segment can be deleted and automatically generated when the *. Col file is opened) <Collection> <Colnum value = cccc3/> set number <Colname value = "XXXX. col"/> *. Col file path </Collection> </Collections> <Doccompilations> definition of a book set (Book path, number, and Collection) <Doccompilation> <Doccompid value = "dddd"/> bibliography No. <Locationhistory> <Colnum value = cccc2/> set number <Titlelocation value = "FFFF. chm"/> Library Content File Path <Indexlocation value = "GGGG. Chi"/> path of the library directory file </Locationhistory> </Doccompilation> </Doccompilations> </Htmlhelpdocinfo> </XML> (Some unnecessary elements are deleted) _____________________________________ * The. Col file can be placed in any directory, *. CHM, *. Chi and other help documents can also be stored in any directory, but must be consistent with the definition in the hhcolreg. dat file. The first two are running around and it is certainly not easy to find, so hhcolreg. dat must be honestly stuck in those fixed folders, In order to facilitate hh.exe to find it and find it scattered in different corners of the world... ---- Longzhu? ---- Is this longzhu radar? .
Is a help document in different corners (*. CHM and *. Chi ). ______________________________________ The set number corresponding to the same book, which is consistent with the set number in the *. Col file. * After the. Col file is opened, the set numbers of records in hhcolreg. dat are the same. That is, the same book cccccc2 = cccc3, otherwise it cannot be opened. * In Col, dddd can be a custom string starting with '=', indicating the directory name, It can also be '= bibliography number'. For example,' = dddd' indicates that this directory is the book with the bibliography number defined in the set as dddd. The name of the library content file is generally the same as that of the library directory file, that is, FFFF = GGGG, indicating the location of the file. Instance ① "C: \ Users \ Phoenix \ Desktop \ vc6.col" File Content ② "C: \ Users \ Phoenix \ Desktop \ vc6.col" Open Effect
③ Content of the "C: \ Users \ All Users \ Microsoft \ HTML Help \ hhcolreg. dat" File
④ "C: \ Users \ All Users \ Microsoft \ HTML Help \ hhcolreg. dat" Open Effect
The above four images are quite clear. What is the purpose of the help document set? For example, if you want to check a function and are not sure which CHM it is in, you can open it one by one or directly search for it in the help document set. PS: there is time to use HTA to write a small tool to sort all the CHM documents on the computer. |