Enhance the DevStudio help


This topic is about making the help system faster and more useful. This tip is especially useful if you are using the MSDN CD but is applicable even if you are not.

Tip 1: Make help faster

I am sure all of you have noticed that help in VC5 is somewhat slow. What adds to the trouble is that the help files are so big that we leave them on the CD. The installer doesn't have the option of copying certain category of topics to the hard disk. It's either all or none. What we can do is manually copy the help files we access the most to the hard disk and set up the System Registry to use the files on the hard disk rather than on the CD. You can use the RegEdit program to find out what files correspond to which topic. Look at the keys under "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InfoViewer\5.0\Titles".

The files that I copied to my hard disk are:

Pdref.ivt Reference
Pdui.ivt User Interface Services
Vccore.ivt Visual C++ Programmer's Guide
Vclang.ivt C/C++ Language and C++ Libraries
Vcmfc.ivt Microsoft Foundation Class Reference

These files take a little less than 50 MB of hard disk space compared to over 600 MB hard disk space you would need if you installed it all on the hard disk.

Once you copy the files to the hard disk, you need to update the registry. You'll find these keys under the "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InfoViewer\5.0\Titles" key without the '.ivt' extension. Update the 'content' value for these keys to point to the file on the hard disk.

Tip 2: Use search filters

If you look under the help menu, you will see amongst others, two menuitems - Define Subsets and Select Subsets. An information subset lets you focus your searches or your browsing on topics in a particular category. For example, if you're interested only in the Win32 API, you could define a subset that contains only the documentation from the Win32 SDK. Once, you define a subset, you can use 'Select Subsets' to choose different subsets for full-text searching (Search Query Dialog), context-sensitive help (F1 lookup), and the table of contents (InfoView). You can still access all the other topics through the index search.

Tip 3: Remove the titles you never use

If you have installed the July version of MSDN, you must have noticed that anytime you press the F1 key you end up with a list of topics. The topics include entries in the Windows CE reference and the MFC 4.2 reference ( which is practically the same as MFC 5 ). This was a big nuisance for me. I don't want to see the topics for Windows CE listed since I am not programming for CE. If you've used tip# 2, you don't really have a problem, except when you are doing an index search. When you are using a search filter, it does not apply to the index search. This is useful since you occasionally need to be able to search for topics outside of your help filter. Since I didn't foresee working on Windows CE, this was still a problem because I still ended up on these pages occasionally.

Anyway, what I did was, I removed the topic entries from the System Registry. These are the ones that were causing me the most pain.

Devdoc This contained the MFC 4.2 reference
Wceide Visual C++ for Windows CE 1.0
Winceddk Windows CE DDK
Wincesdk Windows CE SDK

I search for the keys under the "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InfoViewer\5.0" that contained these words and I deleted them. Of course I noted down their values before deleting - just in case.

Next, lookup the value of "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InfoViewer\5.0\Keywords\CurrentPathname". This value holds the name of the keyword file. Delete this file from the hard disk. It will be recreated the next time you use the help command.



Comments

  • Visual C++ 6.0 help disaster - possible to get V5.0 interface?

    Posted by Legacy on 02/19/1999 12:00am

    Originally posted by: Craig

    I find the interface to the on-line help for Visual C++ 6.0 to be a
    complete disaster. The infoviewer tab has lost and the application which
    replaces it doesn't seem to support context sensitive help queries and
    neither the contents nor output windows can be freefloating meaning that one
    is always too small to use properly.

    Is there any way to restore the Visual C++ 5.0 interface which although not
    perfect was a lot better than the mess which has replaced it.

    thanks

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: August 20, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT When you look at natural user interfaces as a developer, it isn't just fun and games. There are some very serious, real-world usage models of how things can help make the world a better place – things like Intel® RealSense™ technology. Check out this upcoming eSeminar and join the panel of experts, both from inside and outside of Intel, as they discuss how natural user interfaces will likely be getting adopted in a wide variety …

  • Java developers know that testing code changes can be a huge pain, and waiting for an application to redeploy after a code fix can take an eternity. Wouldn't it be great if you could see your code changes immediately, fine-tune, debug, explore and deploy code without waiting for ages? In this white paper, find out how that's possible with a Java plugin that drastically changes the way you develop, test and run Java applications. Discover the advantages of this plugin, and the changes you can expect to see …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds