quote:
Originally posted by Patchou
WriteInterfacePtr simply writes the address of the IDispatch interface associated with the object, nothing more. It is your responsability to do thigns like AddRef and Release to make sure the object is not destroyed before the interface pointer is read back.
If you have a particular example of something you want to do, please post
Is it possible to actually create a new IDispatch object (exposing IMessenger purely as an example) using JScript only (no dll) and then get a object for it so it's possible to do something like:
IMessenger.Signout();
I know you expose all the important stuff from IMessenger in the Messenger object but purely for example's sake...
Or is it just a case of not being able to create objects this way, and ReadInterfacePtr can only be used on objects which have been written to a DataBlock previously using WriteInterfacePtr.
Thanks for replying anyway though, even if you are still being rather vague, leaving me in my confused state...