Re: Call COM dll from ASP with an OUT variable by Lance
Lance
Thu Jul 31 20:09:25 CDT 2003
Hello
I believe VBScript does support pointers, but it does not support type
casting. So the problem is if your method uses say, a long vs. a variant,
it will get a type mismatch, unless you explicitly tell vbScript to use the
pointer, and not the value by enclosing the return variable in Parens:
(This works with COM DLL's written in VB6, but I don't know about Delphi)
IE:
dim invar1
dim invar2
dim outvar
invar1=1
invar2="This is invar2"
myMethod (invar1), (invar2), (outvar)
msgbox outvar
Good luck
Lance
"SA" <SAggarwal@etreby.com> wrote in message
news:#pCrP87VDHA.2224@TK2MSFTNGP10.phx.gbl...
Hi,
I need to call a COM dll method with an signature (one
parameter is of OUT type say parameter sId).
This COM dll is in Delphi and this OUT type parameter has
to be a pointer (Delphi requirement). The problem is what
datatype do I use in ASP and how do I get the value of sId
(vbscript doesn't support pointers).
Please provide some suggesstions or directions please