In my classic ASP site I need to call COM object function.
Here is the COM component definition:
interface IMyComponent : IDispatch
{
HRESULT GetVersion([in] int, [out] double*, [out] BSTR*);
}
In server side I create component object and try to call 'GetVersion' function:
<%
Dim app
Set app = CreateObject("MyComponent")
Dim someUsefulValue
Dim version
app.GetVersion 1, someUsefulValue, version
%>
But this code fails with error "Type mismatch". How I should call this function?