> As far as I'm aware, you need to generate the actual C++
> classes that wrap the COM objects. There aren't any prebuilt
> C++ libraries.
>
> If you use VC 6 to generate the class, then the syntax is
>
> AxQTControl1.GetMovie().Play();
> AxQTControl1.GetMovie().SetTime(AxQTControl1.GetMovie().GetTim
> e()+30000);
>
> If you use VS.NET to generate the class, I believe the class
> uses the get_ and put_ naming conventions for properties.
Indeed, I forgot you could do that too instead of talking to the dispatch
interface yourself
Most C++ environments for Windows (say Borland C++) should have some utility
to read the control's type info (usually from type information embedded in
the control's OCX [DLL] or from a TLB file you provide externally),
similarly for anyother COM DLLs provided with Apple utility code for the
control, and generate wrappers that do the late binding stuff for you based
on that typeinfo.
So after that you should be able to use the code using pseudo-early binding
(have IntelliSense that is and some compiler checking, but binding to the
code at runtime and calling it as if it was scripting code).
If the control supports dual interfaces VC++ will make use of those for
early binding. Dual interfaces are IDispatch interface descendents that add
the same properties/methods as the dispinterface, but in COM way
(dispinterfaces are older, VB-era beast, IDispatch is a COM interface that
wraps their logic and one can extend from it their own interfaces to make
them dual, that is have both early - talking to the custom interface
entrypoints - and late binding - talking to the ancestor IDispatch interface
resolve/call by name standard entrypoint - support).
Try searching the QT-API list archive for "#import" (it's a special keyword
added at VC++6.x to support COM typeinfo so that you don't need to generate
wrappers). There should be a VC++ example for using the QT control posted to
the list by John Chromie now that I think of it
Cheers,
George
----------------
George Birbilis (email@hidden)
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
* QuickTime, QTVR, ActiveX, VCL, .NET
http://www.kagi.com/birbilis
* Robotics
http://www.mech.upatras.gr/~Roboticshttp://www.mech.upatras.gr/~robgroup
_____
avast! Antivirus <http://www.avast.com> : Outbound message clean.
Virus Database (VPS): 0626-2, 28/06/2006
Tested on: 29/6/2006 1:10:37 ??
avast! - copyright (c) 1988-2006 ALWIL Software.
_______________________________________________
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