DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 16 Aug 2007 18:02:02 -0700,    posted on: microsoft.public.dotnet.languages.jscript        back       

Thread Index
  1    Rob


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:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us