In the *_TLB ... is a control function
function A(const s: widestring; b: boolean;
out object: IDispatch): wordbool; dispid 9;
I define a object (defined in the control as the received data object) in my app to receive data:-
var st: AnObject;
I call it with:-
flag:=control.A('string',false,st as AnObject);
and I get compile error for the 'st' parameter:-
'Type of actual and formal var parameters must be identical'
Can anybody help as I'm sure there's a simple answer?