Passing object (com interface) to Activex
Hi,
I am using a mediaplayer object in javascript.
This is a COM (activex) object.
The object is called "player", and is actually the IMediaPlayer2 interface.
I want to pass this object (interface) to my activeX object (written in c++).
Is this possible ? if so, what should be the prototype on the C++ side ?
Example:
// create My activeX object :
var MyFuncs = new ActiveXObject("MyFuncs.Funcs");
// pass the object to my activeX:
MyFuncs.TestFunc(Player);
The C++ prototype I have been testing with is :
STDMETHODIMP CFuncs::TestFunc(IUnknown *obj)
{
HRESULT res = obj->QueryInterface(.........);
}
Any tips are welcome.
Greetings,
Rob.
Date:Thu, 16 Aug 2007 18:02:02 -0700
Author:
|