Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hello! I'm new to VB. Started with

Status
Not open for further replies.

dianal

Instructor
Mar 7, 2001
273
BG
Hello!
I'm new to VB. Started with building ready made examples.

Dim m_xmlDoc As MSXML2.DOMDocument
Dim m_SQLServer As New SQLDMO.SQLServer2
...
Private Function GetTableElement(ByRef tbl As SQLDMO.Table2) As IXMLDOMElement

I got a complile time error "Can't find project or library".
VB suggested to find MS XML 4.0 and MS SQLDMO Object Library.
I have listed in Project/References only MS XML 3.0.
How to get MS XML 4.0 (and possibly newer SQLDMO Object Library)?

Thanks!
 
Change the DomDocument declaration to:

Dim m_xmlDoc as DOMDocument30

This will use the MSXML3 library to create a Dom document. MSXML4 is only in beta at the moment.

I'm not sure about the SQLDMO library.

Madlarry
 
Hello,
I did, but it gain complains about IXMLDOMElement.
May be I found too advanced example.
:)
Thanks!
 
When you reference all of the XML objects (Nodes, Elements etc) don't specify the server in front of the object (i.e. MSXML2.IXMLDOMElement) just reference the object and remove the server name (i.e. IXMLDOMElement), you won't be referencing the MSXML2 library then.

Madlarry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top