thanks for the answer, but no, that's not exactly what I want (I may be wrong of course :) )
that sample USES ax control, while I want my own control to fire custom event (or at least some events), so JavaScript from html page can do the following:
- create MyAXObject (which is done via html <OBJECT> tag)
- hook up to some event from above object, eg OnFinishedSomething
- call MyAXObject.startSomething(
- DO NOT wait at that point
- receive an event and handle it as required
I suppose I need to implement IProvideClassInfo and connection point container interfaces, this is done to some extent by ATL wizard. I lack the last simple step - add my own event to XXX_Events interface, get it visible for JavaScript and then use it there.
Main Topics
Browse All Topics





by: pgnatyukPosted on 2009-09-07 at 05:39:43ID: 25274617
Have you seen SDK 6 samples?
There is wmpsample in PocketPC/ATL folder.
Sorry, if it is not enough. I'll be glad to help you. Last time I was working with COM was 4 years ago and don't want to check this subject now again. How I remember it worked fine, we just had to register this activex each time on start.