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,832 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now