|
-
July 19th, 1999, 05:57 AM
#1
Getting the output parameter(i.e. byref variable ) in ASP
Hi
I am ASP Programmer
I have created an activex DLL in VB.One function procedure of that DLL has 4 parameters.All are called by referrence.When I am calling the method from the dLL through VB 6.0 I am able to get the
output parameter & return value perfectly.But the same when I call through ASP (Server Side) I could get the return value or only one output parameter.If I am adding more than one in the
Browser it gives Type MisMatch error.PLease let
me know if there is any limitations in Calling a com component through ASP.
Regards
sairam
-
July 20th, 1999, 08:42 AM
#2
Re: Getting the output parameter(i.e. byref variable ) in ASP
There are 2 solutions to your problem.
1. ASPs handle only variant datatypes so your parameters must be variant.
2. If the above wouldn't work do what I mostly do. I make my sub a function with a returning datatype variant. As soon as the function completes its work it returns an 1. Also I expose Read-Only Properties into which I put what the function should return in its ByRef parameters (if it had any). This solution works for sure.
-
July 21st, 1999, 12:04 AM
#3
Re: Getting the output parameter(i.e. byref variable ) in ASP
Hi
Thank You for your mail.
I have found the solution for it.ASP works well any number of output parameters
& return value.Only thing we have to ensure when we return an array as parameter
use "as variant" instead of "as variant"
REgards
R.Sairam
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|