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: C++



> Thanks for your response,
>
> The function .get_Movie() returns a LPDISPATCH, should I
> typecast this to some other variable so I can invoke
> ->Play()? If so, what do I need to typecast it as, and what
> include files are necessary?
>
> Is there any documentation for C/C++?

LP means Long Pointer I suppose (Hungarian notation)

DISPATCH means a Dispatch interface. It's used for late binding [run-time
binding] (in contrast to early binding [compiler-time binding]) to COM
"server" objects. I don't think VC++ supports directly in the language late
binding to dispinterfaces, so you either have to use

I don't think there are C++ specific docs for that control. You can search
the net for "C++ COM late binding" instead

You could try GNU C# which builds native clients (non .NET) if you're not
using C#, VB.net etc. cause you don't want to target the .NET runtime. Not
sure though if it supports COM and .NET's COMinterop APIs at all.

You could also try to cast that pointer to an IDispatch* (I think VC++
allows it) and then use the methods of the IDispatch COM interface to invoke
verbs (will need to use Variants to pass params and get results to/from
called methods). Similarly you need Variants to access properties. The usual
way of doing something with IDispatch is to get the ID for some method by
name and then use that ID to do the action or read/write some property (via
Get_XX and Set_XX methods). It's used for scripting.

There might be helper code for such things in MFC or ATL etc., instead of
doing it by hand which is tiring. Can search the net as I say above

----------------
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/~Robotics
http://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 12:52:54 ??
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



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.