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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript and ActiveX component problem

Status
Not open for further replies.

LokiDba

Programmer
Dec 13, 2000
63
0
0
GB
Hi

I have a problems calling a function on an activex object (written in C++) which has a parameter passed to it by reference. Calling other functions on the object work fine but the value returned in the parameter is Nothing. Any ideas

Thanks in advance

Loki DBA
 
what it's the parameter?
it's an object,variant,etc?
 
The functions prototype on the ActiveX object is as follows

getValue( ByRef al_Value As Long )

Any ideas

LokiDBA
 
Hi


If you are going to pass the value as byref then it should be defined as varient

getValue( ByRef al_Value As varient )

please try this it will work


Thanks

Muthukumar


MuthuKumar
 
Thanks MuthuKumar,

I ended up producing a wrapper COM object that used Varient and it seems to be working.


Thanks LokiDBA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top