I really need to assign some events in my code through an IDisaptch interface.
I've found a class that solved almost all my problems. The events are triggered just fine, however, ALL my events have [in/out] parameters and that code has bugs, since it does not handles it.
I've tried to solve the problem using something like (using an hardcode solution):
function TComEvents.Invoke(DispID: Integer; const IID: TGUID; LocaleID: Integer; Flags: Word; var Params; VarResult, ExcepInfo, ArgErr: Pointer): HResult;
var a : TDISPParams absolute params;
a.rgvarg^.lval := 123;
However, it didn't work... the value passed still wasn't changed. Can you please help me?