Results 1 to 3 of 3

Thread: classic asp receiving an array from a VB.NET DLL

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2004
    Location
    London, UK
    Posts
    3

    classic asp receiving an array from a VB.NET DLL

    Due to historic reasons, I have a classic ASP application that calls a DLL written in VB.NET. The function in the DLL populates a two dimensional array with the contents of a SQL Server table (using ADO.NET). This array is then passed back to the ASP application to be displayed to the user.

    The problem I am experiencing is when I attempt to reference the array in the ASP application a Type Mismatch error occurs. I cant seem to find a way around this problem. any ideas?

    thanks in advance.
    Stuart

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    In vb.net, the array is of a more complex object data type, and I'm guessing some of it's properties and methods such as the ".sort" function this object has is confusing your vb6/asp code.

    You could strip the array down into a comman delimited string for vb6 to take it in, or the gotdotnet site http://samples.gotdotnet.com/quickst...tClient_1.aspx may be able to provide some other way to do achieve this.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2004
    Location
    London, UK
    Posts
    3
    thanks for your reply. i found the following link below concerning my problem (almost). the article deals with array passing between VB6 and VB.Net and not classic ASP. You would have assumed the code to work in ASP but it doesnt. Still getting the type mismatch error when attempting to reference the array.

    I will have to find an alternative method of passing back information.

    How Do I...Pass an Array From .NET Code to VB6 Code?
    http://samples.gotdotnet.com/quickst...tClient_1.aspx

    thanks any way.
    Stuart

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