Microsoft DirectX 8.1 (C++)

Connecting to the Guide Store (Visual Basic)

To use the Guide Store in a Visual Basic project, first add a reference to the Microsoft TV GuideStore Type Library. The name in the Available References list may vary, depending on the version.

The following declaration creates the GuideStore object:

Public g_gs As New GuideStore

To open the database, call GuideStore.Open. In the following example, a filename is passed in.

g_gs.Open "C:\GuideStore\gs.mdb"

You can also pass vbNullString to open the default database specified in the registry. If the registry key does not exist, a database named Guidestore.mgs is opened in the default media directory.

The following code shows how to access the Guide Store from a Web page:

<HTML>
<HEAD>
<SCRIPT LANGUAGE = "VBScript">
<!--
' Connect to the Guide Store.
Dim myGuideStore
Set myGuideStore = CreateObject("MSTVGS.GuideStore.1")
    myGuideStore.Open "gs.mdb"

' Other code here.
-->
</SCRIPT>
</HEAD>
 
<BODY>
 
</BODY>
</HTML>