Software Archive
Read-only legacy content

CVF and ASP3.0

Intel_C_Intel
Employee
474 Views
I would appreciate any information and/or references on the mechanics in setting up a DLL/COM using CVF 6.5 which can be "called" by a ASP with VBScripts. For example, from ASP passing two numbers and an array to the CVF DLL/COM, and in return one additional array.

Thanks.
0 Kudos
1 Reply
Intel_C_Intel
Employee
474 Views
First your COM object needs to support IDispatch. So select a Dual interface in the COM Server Wizard. Next, you must restrict the arguments to your methods even more than just to automation compatible types. I think that [in] parameters can be VARIANT or VARIANT-compatible, while [out] parameters need to be VARIANT* - variants passed by reference. See http://support.microsoft.com/support/kb/articles/Q197/9/57.ASP for more info. The real pain is that arrays have to be a variant containing a safearray of variants. A pain. This is where a library of variant routines is very helpful. If you go forward with this, check out http://www.canaimasoft.com/Products_f90VB.htm

There's also lots of books on ASP development, like Developing ASP Components

hth,
John
0 Kudos
Reply