A1VBCode Forums

How to pass an object argument from classic ASP to C# dll


http://www.a1vbcode.com/vbforums/Topic27927.aspx

By a_and_k - 7/21/2009

We have a C# dll and I need to call some of the object methods from a classic ASP. I have managed to register the dll correctly using regasm.exe. I am also able to create the object, and call methods that take string arguments and/or return strings. However, I need to call other methods that take object arguments/return object arguments. This does not work at all. Any ideas on how the mapping works between C# objects and ASP data structures?

I also have the choice of re-write the c# dll to a VB.NET dll, but I don't know if that will make the mapping easier?

I think my questions is: how to pass in (and out) complicate data structures (e.g. objects, hashtables, structs, etc) from classic ASP to .NET (VB or C#).

Thanks in advance for your help