CodeGuru
Earthweb Search
Forums Wireless Jars Gamelan Developer.com
CodeGuru Navigation
Member Sign In
User ID:
Password:
Remember Me:
Forgot Password?
Not a member?
Click here for more information and to register.

jobs.internet.com

internet.commerce
Partners & Affiliates
Calling Cards
Auto Insurance Quote
Career Education
Memory
Online Education
Promotional Gifts
Logo Design Custom
Home Improvement
KVM Switches
Domain registration
Promote Your Website
Compare Prices
Dental Insurance
Imprinted Gifts


RSS Feeds

RSSAll

RSSVC++/C++

RSS.NET/C#

RSSVB

See more EarthWeb Network feeds

Home >> Visual C++ / C++ >> Windows Programming >> Help Systems >> MSDN

Best Practices for Developing a Web Site: Checklists, Tips, Strategies & More. Download Exclusive eBook Now.

MSDN Help Integration
Rating:

Shannon McCoy (view profile)
March 10, 2004

Environment: Windows 2000 Professional, MSDN Oct 2000
(continued)



Download these IBM resources today!
e-Kit: IBM Rational Systems Development Solution
With systems teams under so much pressure to develop products faster, reduce production costs, and react to changing business needs quickly, communication and collaboration seem to get lost. Now, theres a way to improve product quality and communication.

Webcast: Asset Reuse Strategies for Success--Innovate Don't Duplicate!
Searching for, identifying, updating, using and deploying software assets can be a difficult challenge.

eKit: Rational Build Forge Express
Access valuable resources to help you increase staff productivity, compress development cycles and deliver better software, fast.

Download: IBM Data Studio v1.1
Effectively design, develop, deploy and manage your data, databases, and database applications throughout the data management life.

eKit: Rational Asset Manager
Learn how to do more with your reusable assets, learn how Rational Asset Manager tracks and audits your assets in order to utilize them for reuse.

I have been looking for a way to integrate my own HTML Help files with MSDN for a long time. The information has been scant to say the least. After many false starts and looking for information all over the web I finally succeeded. Here is how I did it.

Step 1: Create a help project file. I used the MS HTML Help Workshop. You can get it from the MS Platform SDK.

Step 2: Edit the project file to create a .chi file. There is no option to create .chi files in the Help Workshop that I could find so you have to edit the project file manually. I used Active Visual NotePad+.NET ( i.e. NotePad.exe ). Under the [Options] section add the lines

Binary TOC=Yes
Create CHI file =Yes

The Binary TOC line can be also be added using the Help Workshop by going the the Project Tab, opening the Properties Dialog and checking the Create binary table of contents option on the compiler Tab. When I didn't create a binary TOC my entry showed up but the tree would not expand. Gotcha #1

Step 3: Compile the Help Project. When you are done creating your help project compile it and you should have a helpfile.chm and a helpfile.chi file.

Step 4: Edit the MSDN Collection file. This file is located in the MSDN installation directory. For the October MSDN Library on my system the file is C:\Devel\Microsoft Visual Studio\MSDN\2000OCT\1033\MSDN030.COL. This is and XML file containing the folder hierarchy for the MSDN Contents window. Add your folders to the collection I again used Active Visual NotePad+.NET. My example follows in blue

...Other Folders....

    <Folder>
     <TitleString value="Samples"/>
     <FolderOrder value=16/>
     <Folder>
      <TitleString value="=samples"/>
      <FolderOrder value=1/>
      <LangId value=1033/>
     </Folder>
    </Folder>
   </Folder>
   <Folder>
    <TitleString value="GreenRoom Technologies"/>
    <FolderOrder value=2/>
    <Folder>
     <TitleString value="=GreenRoom Tech"/>
     <FolderOrder value=1/>
     <LangId value=1033/>
    </Folder>
   </Folder>
  </Folders>
 </HTMLHelpCollection>
</XML>

Step 5: Edit the HTML Help collection registration file hhcolreg.dat. This is another XML file and I found 2 hhcolreg.dat files on my system. One in the WinNT\Help folder and one in the C:\Documents and Settings\All Users\Application Data\Microsoft\HTML Help folder. The second one is the one that contained all the MSDN stuff. I haven't checked where it is installed on Win98/Me or WinNT 4.0 but you can use [Windows Key]+F to find it. At the bottom of the file add your entries to the file. Mine looks like this...

...Other DocCompilations ...

Editor's Note: Some lines below had to be broken in order to display properly on the page. For your XML to be parsed correctly, each XML directive needs to exist on a single line. For your convenience, the lines that need to be merged are marked in green.

  <DocCompilation>
   <DocCompId value="advnvb5"/>
   <DocCompLanguage value=1033/>
   <LocationHistory>
     <ColNum value=10013/>
     <TitleLocation value="\\MyServer\Devel\MSDNLI~1\
      MSDN\advnvb5.chm"/>
     <IndexLocation value="C:\Devel\Microsoft Visual Studio\
      MSDN\2000OCT\1033\advnvb5.chi"/>
     <QueryLocation value="\\MyServer\Devel\MSDNLI~1\MSDN\
      MSDN030.CHQ"/>
     <LocationRef value="2000OCT-1033-CD3"/>
     <Version value=29304614/>
     <LastPromptedVersion value=0/>
     <TitleSampleLocation value=""/>
     <TitleQueryLocation value="2000OCT-1033-CD2"/>
     <SupportsMerge value=0/>
    </LocationHistory>
   </DocCompilation>
   <DocCompilation>
    <DocCompId value="GreenRoom Tech"/>
    <DocCompLanguage value=1033/>
    <LocationHistory>
     <ColNum value=10013/>
     <TitleLocation value="C:\Devel\MICROS~1\MSDN\2000OCT\
      1033\\helptest.chm"/>
     <IndexLocation value="C:\Devel\MICROS~1\MSDN\2000OCT\
      1033\\helptest.chi"/>
     <LocationRef value=""/>
     <Version value=29304614/>
     <LastPromptedVersion value=0/>
     <TitleSampleLocation value=""/>
     <TitleQueryLocation value="2000OCT-1033-CD2"/>
     <SupportsMerge value=0/>
    </LocationHistory>
   </DocCompilation>
  </DocCompilations>
 </HTMLHelpDocInfo>
</XML>

Make sure the DocCompId value matches the TitleString from the other file.

Save the file and run MSDN that's it. It should work. Mine does. Hope yours will too. Good luck.7;^)

I have included my Help Project along with this post so you can test.

Downloads

Download MSDN Files - 7 Kb

Tools:
Add www.codeguru.com to your favorites
Add www.codeguru.com to your browser search box
IE 7 | Firefox 2.0 | Firefox 1.5.x
Receive news via our XML/RSS feed

Whitepaper: Enterprise Information Integration--Deployment Best Practices for Low-Cost Implementation
Guide to Developing a Web Site. Best Practices, Tips and Strategies. Download Exclusive eBook Now.
Best Practices for Developing a Web Site. Checklists, Tips & Strategies. Download Exclusive eBook Now.
Learn about expanding business opportunities for the reseller channel. Visit IT Channel Planet.
Generate Complete .NET Web Apps in Minutes . Download Iron Speed Designer today.


RATE THIS ARTICLE:   Excellent  Very Good  Average  Below Average  Poor  

(You must be signed in to rank an article. Not a member? Click here to register)

Latest Comments:
But this doesn't work for current MSDN releases! - Kevin Hall (03/10/2004)

View All Comments
Add a Comment:
Title:
Comment:
Pre-Formatted: Check this if you want the text to display with the formatting as typed (good for source code)



(You must be signed in to comment on an article. Not a member? Click here to register)


JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Microsoft Article: 7.0, Microsoft's Lucky Version?
Microsoft Article: Hyper-V--The Killer Feature in Windows Server 2008
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Windows Server 2008
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES