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

Referencing Variables in VBScript

Status
Not open for further replies.

RSTR

Programmer
Mar 25, 2000
27
US
I have loaded an Object that uses a method written in
C++ that looks like this:

functionname(int *Name, float *name2, float *name3 etc...)

Now, when i call for this function, I cant just write:

Object.functionname(Var, Var, Var etc...)

This gives me a type mismatch.

I assume this is because the function is asking for the address of the variable, not the variable.

Is there a way I can reference the VBScript variant to the C++ function?

Or did I do something completely wrong?
-RSTR

benthecat@hotmail.com

 
If I remember rightly you can't pass C++ variants. I know in VB you have to do some conversion work with your variables to pass to the Windows API which are written in C++. It is complicated aswell. I found the info in Dan Applemans guide to the Windows API.

James :) James Culshaw
jculshaw@active-data-solutions.co.uk
 
Well, The C++ Code was uploaded through an ActiveX Object. Honestly, I don't know a thing about the whole process, but I did need to know if I could reference variables in VBScript. Since I can't, I now know that I have to write a new method in C++ that will return the variables to me directly instead of by reference. I hope I'm not in a little too far over my head =-)

Thx for the help.
-RSTR benthecat@hotmail.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top