R.Wieser
2023-08-16 11:22:54 UTC
Hello all,
I've got an OCX/ActiveX object which has a method which is, in the IDL file,
described as follows :
HRESULT SetData([in] float val1,[in] float val2,[in] float val3);
I just tried to write a method to retrieve that data again, and its
descriptione looks like this :
HRESULT GetData([in] float* val1,[in] float* val2,[in] float* val3);
When I try to call the methods from within VBScript like this :
call oData.SetData(1,2,3)
call oData.GetData(v1,v2,v3)
-or-
oData.GetData v1,v2,v3
the "SetData" one works, but for some reason the "GetData" ones (both)
generate an "type mismatch" error (and the methods code in the OCX doesn't
get called).
My question : what should the "GetData" description in the IDL look like ?
Remark :
I got the "GetData" method to work by changing the "float*" to "variant*"
(and change the called method accordingly), but would like to have both
methods and arguments to be copies of each other - just working in opposite
directions.
Regards,
Rudy Wieser
I've got an OCX/ActiveX object which has a method which is, in the IDL file,
described as follows :
HRESULT SetData([in] float val1,[in] float val2,[in] float val3);
I just tried to write a method to retrieve that data again, and its
descriptione looks like this :
HRESULT GetData([in] float* val1,[in] float* val2,[in] float* val3);
When I try to call the methods from within VBScript like this :
call oData.SetData(1,2,3)
call oData.GetData(v1,v2,v3)
-or-
oData.GetData v1,v2,v3
the "SetData" one works, but for some reason the "GetData" ones (both)
generate an "type mismatch" error (and the methods code in the OCX doesn't
get called).
My question : what should the "GetData" description in the IDL look like ?
Remark :
I got the "GetData" method to work by changing the "float*" to "variant*"
(and change the called method accordingly), but would like to have both
methods and arguments to be copies of each other - just working in opposite
directions.
Regards,
Rudy Wieser