In Creating a Manifest for Your Component DLL you are given instructions on how to author a manifest and test side-by-side installation of your component DLL that uses MSXML 5.0. The process requires you to have or make a simple EXE that uses another small DLL, which in turn, depends upon MSXML 5.0. Since you need these files to test side-by-side installation under Windows XP, the procedures in this topic provide you instructions for how to generate those files.
To create DllTest.dll using Visual Basic
Option Explicit
Private xmlDoc As MSXML2.DOMDocument50
Private mvarIt As String
Public Property Let It(ByVal vData As String)
mvarIt = vData
End Property
Public Property Get It() As String
Set xmlDoc = New DOMDocument50
xmlDoc.async = False
xmlDoc.loadXML "<" & mvarIt & "/>"
It = xmlDoc.xml
End Property
Private Sub Class_Initialize()
mvarIt = "test"
End Sub
Private Sub Class_Terminate()
Set xmlDoc = Nothing
End Sub
Select a folder on your computer (such as c:\temp) where you want the compiled DllTest.dll file to be placed, and then click OK.
Note Visual Basic automatically creates the type library for a project, and registers the DLL globally on your development computer when you create it. If you copy DllTest.dll directly from your computer to another computer to test it with your application, you can skip this step.
To create MyTestApp.exe using Visual Basic
You should see DllTest selected in the list of available references. After you do, click OK.
Private Sub Command1_Click()Dim MyObject As New DllTest.TestSxSMyObject.It = "test"MsgBox MyObject.ItEnd Sub
Select the same folder on your computer where you created DllTest.dll (such as c:\temp). Click OK.
Creating a Manifest for Your Component DLL