?
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
Medium Priority
?
1,965 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
sgayatri earned 375 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month11 days, 12 hours left to enroll

752 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