Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QuickTime 7 (7.0.2.70) ActiveX control, how to subscribe for QTEvent events?



I've tried subscribing to events in the following way:

axQTControl.QuickTime.EventListeners.Add(
   QTOLibrary.QTEventClassesEnum.qtEventClassStateChange,
   QTOLibrary.QTEventIDsEnum.qtEventLoadStateDidChange,
   1,    //what flags are needed here?
   null);    //probably optional, right?

I've tried registring for events with other interfaces (not just control.QuickTime) as well, and I've called EventListeners.Add() with other
argument combinations - all without success.

shouldn't you be passing your listener interface implementation (class instance) instead of null there? Else what will the control call into for the "callback"? You can implement the event listener (sink) interface either at a new class or at your control descendent class (supposing it allows subclassing)


My question is therefore: Does anyone have more detailed knowledge on how to get QTEvent events out of the new QuickTime control?

just guessing, see the list archive for the e-mail of the Apple engineer behind this control (his recent replies regarding C#, .NET and the control). Maybe he's on vacations now...


Besides the fact that I'm not entirely sure about which combinations of QTEventClassesEnum and QTEventIDsEnum are allowed, I have no
clue as to what values tha Flags prameter (3rd argument of the EventListeners.Add() method) should be. The fourth argument I'd expect to
be some subscriber reference.

isn't it some enumeration type? if it's just an integer that should be fix

-----
George Birbilis (email@hidden)
Microsoft Most Valuable Professional
MVP J# for 2004 & 2005
http://www.kagi.com/birbilis
QuickTime, Delphi, ActiveX, .NET, IPC
--------------


_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden
References: 
 >QuickTime 7 (7.0.2.70) ActiveX control, how to subscribe for QTEvent events? (From: "Bendicht Thomet" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.