HOWTO: Distributing RDS Client with Visual Basic Setup WizardID: Q176874
|
This article describes the steps to distribute the Remote Data Service
(RDS) client files with a Visual Basic 5.0 application. You need to have a
thorough understanding of how RDS and Visual Basic work before you attempt
to distribute your application. There are other RDS Microsoft Knowledge
Base articles available that you can use to learn more about RDS before
distributing your application.
In order to distribute an RDS client application using Visual Basic you
will need to include the following files with your setup program:
msadce.dll* - installed to \Program Files\Common Files\system\msadc
msadco.dll* - installed to \Program Files\Common Files\system\msadc
msador15.dll* - installed to \Program Files\Common Files\system\ado
msdadc.dll* - installed to \Program Files\Common Files\system\ole db
msdaps.dll* - installed to \Program Files\Common Files\system\ole db
msdaer.dll* - installed to \Program Files\Common Files\system\ole db
msr2c.dll* - installed to \system
msadcer.dll - installed to \Program Files\Common Files\system\msadc
msadcor.dll - installed to \Program Files\Common Files\system\msadc
msader15.dll - installed to \Program Files\Common Files\system\ado
msdaerr.dll - installed to \Program Files\Common Files\system\ole db
msr2cenu.dll - installed to \system
msdatsrc.tlb - installed to \system
wininet.dll - installed to \system
* indicates an ActiveX component that needs to be registered.
Private Sub Command1_Click()
'DataControl
MousePointer = vbArrowHourglass
Dim dc As New RDS.DataControl
dc.Connect = "dsn=pubs;uid=sa;pwd=;"
dc.SQL = "select * from authors"
dc.Server = "<LINK TYPE="GENERIC" VALUE="http://ServerXXXX"">http://ServerXXXX"</LINK>
dc.ExecuteOptions = adcExecAsync
dc.Refresh
While dc.ReadyState = 2
DoEvents 'user has control during async query
Wend
MousePointer = vbDefault
MsgBox dc.Recordset.Fields(0).Value
End Sub
Private Sub Command2_Click()
'DataSpace, DataFactory
MousePointer = vbArrowHourglass
Dim ds As New RDS.DataSpace
Dim df, rs
Set df = ds.CreateObject("RDSServer.DataFactory",
"<LINK TYPE="GENERIC" VALUE="http://ServerXXXX")">http://ServerXXXX")</LINK>
Set rs = df.Query("dsn=pubs;uid=sa;pwd=;", "select * from authors")
MsgBox rs.Fields(0).Value
MousePointer = vbDefault
End Sub
File9="C:\Program Files\Common Files\SYSTEM\MSADC\msadco.dll",True, "C:\Program Files\Common Files\SYSTEM\MSADC",$(DLLSelfRegister),True
File10="C:\Program Files\Common Files\System\MSADC\msadce.dll",True, "C:\Program Files\Common Files\SYSTEM\MSADC",$(DLLSelfRegister),True
File11="C:\Program Files\Common Files\System\MSADC\msadcer.dll",True, "C:\Program Files\Common Files\System\MSADC",,True
File12="C:\Program Files\Common Files\System\MSADC\msadcor.dll",True, "C:\Program Files\Common Files\System\MSADC",,True
File13="C:\Program Files\Common Files\System\ADO\msador15.dll",True, "C:\Program Files\Common Files\System\ADO",$(DLLSelfRegister),True
File14="C:\Program Files\Common Files\System\ADO\msader15.dll",True, "C:\Program Files\Common Files\System\ADO",,True
File15="C:\Program Files\Common Files\System\OLE DB\msdadc.dll",True, "C:\Program Files\Common Files\System\OLE DB",$(DLLSelfRegister),True
File16="C:\Program Files\Common Files\System\OLE DB\msdaps.dll",True, "C:\Program Files\Common Files\System\OLE DB",$(DLLSelfRegister),True
File17="C:\Program Files\Common Files\System\OLE DB\msdaerr.dll",True, "C:\Program Files\Common Files\System\OLE DB",,True
File18="C:\Program Files\Common Files\System\OLE DB\msdaer.dll",True, "C:\Program Files\Common Files\System\OLE DB",$(DLLSelfRegister),True
File19="C:\WINNT\system32\msdatsrc.tlb",True,
"$(WinSysPath)",$(TLBRegister),True
File20="C:\WINNT\system32\MSR2CENU.DLL",True, "$(WinSysPath)",,True
File21="C:\WINNT\system32\MSR2C.DLL",True, "$(WinSysPath)",$(DLLSelfRegister),True
This article is one of a series dealing with the redistribution of
Microsoft Data Access Components (MDAC); ODBC, OLE DB, ADO, RDS, the MDAC
Standalone, MDAC Redistribution and the Data Access SDK. The whitepaper
"Redistributing Microsoft Data Access Components" presents a comprehensive
overview of this subject, including referencing the content of this
Knowledge Base article. This whitepaper is located at the following Web
address:
http://www.microsoft.com/msdn/news/feature/datajul98/redistmdac.htm
Additional query words: kbdse
Keywords :
Version : WINDOWS:1.5
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: January 29, 1999