I've got the IDispatch of an instance of a currently open application. I want to get the COM object which this IDispatch points towards. Through brief research I assume that I can do this with the following:
Code: Select all
;Set value of IDispatch which points to my application's COM object
IDispatch:=524175952
;Get the COM Object pointed at by IDispatch
MI:=ComObjEnwrap(IDispatch)
;Call method of COM Object, returning name of application.
msgbox, % MI.Name()
Am I doing something wrong? Or is this a problem I cannot solve?
Thanks,
~Sancarn