CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 1999
    Posts
    3

    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





  2. #2
    Join Date
    Jul 1999
    Posts
    5

    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.


  3. #3
    Join Date
    Jul 1999
    Posts
    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
  •  





Click Here to Expand Forum to Full Width

Featured