Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Active Server Pages (ASP)
Expertise: Beginner
Jul 2, 1999

Passing Arguments By Reference/Pointer in ASP

Question:
I am using a COM object written in Visual C++ using MFC. One of the object methods has a signature like this:

void Function(BSTR, BSTR, long*)

Whenever I call this method I get a type mismatch on the last parameter. How can I pass a long* from an ASP script either using VBScript or JavaScript? (I am running Microsoft Personal Web Server.)

Answer:
Unfortunately, VBScript running in your ASP pages only deals with variant data types. One thing you could try is to pass it as


Clng(variable) 

and see if that works.
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date