Just started with COM/ACTIVEX and I got stuck. I created a new
DLL-application, added ComServ as unit and then following exportstatements.
exports
DllGetClassObject,
DllCanUnloadNow,
DllRegisterServer,
DllUnregisterServer;
Then I added a COM-object from the ActiveX page (I'm using Delphi 4) and
added the method "GetWebDate" with the parameters 1: "ID:integer" and 2:
"out Name:WideString".
When I try to use the methode "GetWebData" using an ASP-script (server
working MS IIS4) I get this error:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'GetWebData'
/temptestsite/testweb.asp, line 16
In my asp-script i'm doing the following:
<%
Dim MyData
MyData = " " '
Set MyTestApp=Server.CreateObject("CAWebdemo.WebDemo") 'works fine
'I tried: MyTestApp.GetWebData(500, MyData) This would not work
MyTestApp.GetWebData 500, MyData
Response.Write(MyData)
%>
Can someone help me solve this problem?
--
Greatings,
Ronald Hoek
Applicationdevelopper
ComponentAgro B.V.
Barendrecht
Phone. +31-180-621306
Fax. +31-180-611797
mailto:ho...@componentagro.nl
http://www.componentagro.nl