<HTML> <HEAD><TITLE>Ch 19 - Registering Your Application - Special Edition Using Visual Basic 5</TITLE> </HEAD> <BODY BGCOLOR="#ffffff" TEXT="#000000"> <p><H2><b>Associating a File Type with Your Application</b></H2></P> <HR> <P>The Registry contains <I>FileType</i> keys that identify specific file extensions as belonging to specific applications. This key allows the Windows shell functions to start an application for loading the file when the user double-clicks the file name in the Explorer or a shortcut for the file on the Windows desktop. <P>To associate a file type with your application, follow these steps: <OL> <LI>Create a registration file for your application. The following file registers OLESTORE.EXE and creates associations for loading and printing the file. <P><b>Listing 19.23 - Registering the OLE File Type</b> </FONT> <p><pre><tt> <FONT COLOR="#008000">; Comments: OLESTORE.REG REGEDIT ; Register OLESTORE.EXE. HKEY_CLASSES_ROOT.application = OLE Samples Storage View Utility ; Provide open and edit command lines for the Explorer HKEY_CLASSES_ROOT.application @= c:
vb5 se
samples