home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winui / shell / fparser / readme.txt < prev    next >
Encoding:
Text File  |  1996-01-25  |  1.8 KB  |  60 lines

  1. File Parser
  2.  
  3.  
  4. SUMMARY
  5. =======
  6.  
  7. The FPARSER sample parses files with a particular extension.
  8.  
  9. The default file extension for this sample is TST. To use this file parser 
  10. for ASCII files of different extensions, the registry must be changed. The 
  11. registry entry for the new extension must be given a new key named 
  12. QuickViewAddOn under the subkey that contains our viewer class identifier. 
  13. Within this key, the registry should have an item named DllName, whose value 
  14. is the name of your DLL.
  15.  
  16. As an example, a filter whose file extension is .XXX, would need the
  17. following reg file contents merged into the registry:
  18.  
  19.    HKEY_LOCAL_MACHINE\SOFTWARE\
  20.    Classes\QuickView\.XXX\{F0F08735-0C36-101B-B086-0020AF07D0F4}
  21.    \QuickViewAddOn
  22.  
  23.    DllName"="vsxxx.dll
  24.  
  25. This would enable a user to right-click on a file of extension .XXX and
  26. have the vsxxx.dll file parser be used.
  27.  
  28. This approach will override any built-in file identification used by
  29. SCC's DLLs, using the extension only to choose the specified file parser.
  30.  
  31. NOTE: No other identifier can be used in the above registry entry.
  32.  
  33. MORE INFORMATION
  34. ================
  35.  
  36. This sample provides a template for an ASCII file parser. It is configured
  37. to work with the file extension .TST, but this can be changed by modifying
  38. FPARSER.REG to the extension you wish.
  39.  
  40. Usage
  41. -----
  42.  
  43. To use this file parser, use the following steps:
  44.  
  45. 1. Import FPARSER.REG into your registry.
  46.  
  47. 2. Set the key HKEY_LOCAL_MACHINE\SOFTWARE\SCC\Viewer Technology\MS1. 
  48.    Verify to a non-zero value. This will reset the list of parsers the next 
  49.    time a file is viewed.
  50.  
  51. 3. Build VS_ASC.DLL.
  52.  
  53. 4. Copy VS_ASC.DLL to <windows path>\SYSTEM\VIEWERS.
  54.  
  55. 5. Rename or copy an ASCII file to a .TST extension.
  56.  
  57. 6. From the Explorer, right-click the file.
  58.  
  59. 7. Select Quick View.
  60.