Solved

Compile Error - Function or interface marked as restricted or the function uses an automation type not supported in Visual Basic

Posted on 2004-09-30
2
1,864 Views
Last Modified: 2011-10-03
I received a piece of VB code that had the compile error listed in the subject.  It stopped on the statement
   logID = log.childNodes.Item(0).Text and highlighted "childNodes".
I think these preceding code lines have something to do with this statement.
   Dim RPCResult As IXMLDOMNode
   Dim logsAs  IXMLDOMNodeList
   Dim log As  IXMLDOMNode
   Set Logs = Reader.RPCResult.childNodes
I'm not much of a VB programmer so I'm kind of lost here.  Am I missing a reference?  The code utilizes the MS SOAP Toolkit and it said it required VB6 with SP4.  When I look at the Help->About, it doens't say anything about SP4.  It says the version is 8176.  Is this not the correct version?

0
Comment
Question by:cacomputerguy
2 Comments
 
LVL 3

Accepted Solution

by:
sgayatri earned 125 total points
ID: 12198282
May be you have to install MS SOAP tool kit (try doing it again, if already done also) and SP4 for vb6.

In your code, try by typing  
log.
(log followed by a dot without spaces)
See if you can get that childnodes method listed automatically.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question