|
| Importing Quicktime 7 into BDS2006 - I can't get it to compile |
 |
Wed, 18 Jul 2007 11:34:00 -070 |
Had to choose between multimedia and activex.using - I figured I'd start
here.
I wanted to try the newest Quicktime 7.2 control in Delphi Win32 in BDS2006.
Had some issues trying to import the ActiveX control/type library
information, since the Import Component stuff changed. Found an example, and
tried to match it with the instructions in John Cromie's book on the new
Quicktime stuff.
So I've got a control and it looks OK, but when I try to compile a simple
test application, I'm getting the following error messages:
[Pascal Error] QTOLibrary_TLB.pas(3959): E2010 Incompatible types: 'QTPOINT'
and 'Variant'
[Pascal Error] QTOLibrary_TLB.pas(3970): E2160 Type not allowed in OLE
Automation call
[Pascal Error] QTOLibrary_TLB.pas(4280): E2010 Incompatible types: 'QTRECT'
and 'Variant'
[Pascal Error] QTOLibrary_TLB.pas(4291): E2160 Type not allowed in OLE
Automation call
[Pascal Fatal Error] Unit1.pas(7): F2063 Could not compile used unit
'QTOLibrary_TLB.pas'
A bit of digging in Google found a set of messages initiated by myself in
December 2005, dealing with the first QT7 stuff, but back at Delphi 7. I got
that working, and it's not the same problem. I've got the code to handle the
FPU control word in the program now.
Anyone done this and can point out how I should really import the Quicktime
stuff into BDS2006?
Thanks.
|
| Post Reply
|
| Re: Importing Quicktime 7 into BDS2006 - I can't get it to compile |
 |
Thu, 19 Jul 2007 10:22:34 -070 |
"harrie" <hpearce@magian[dot]com> wrote in message
news:469ed577$1@newsgroups.borland.com...
> I've never had much luck with Quicktime ActiveX components even when
> disabling the floating-point exceptions. I've only ever been able to set
> the URL ie
>
> QTControl1.ControlInterface.URL := OpenDialog1.FileName;
>
> but with everything else such as
>
> QTControl1.ControlInterface.MovieControllerVisible := False;
> or
> QTControl1.ControlInterface.Movie.Play(1);
>
> cause access violations. How do you use the ActiveX control when you had
> it working?
To be honest, when using the older Quicktime 6 ActiveX control, I have the
SkyLight library from skylark.ie as the interface. It works really well for
my application.
The guy behind that, John Cromie, is the guy who then built the new
Quicktime 7 control, and wrote the book "Quicktime for .NET and COM
Developers" that describes the new implementation.
I'm trying to get back into a place where I can play with the new control,
but the Quicktime 7.2 release seems to have issues on my import to BDS2006
(and Delphi 7, it turns out. I tried that last night too).
|
| Post Reply
|
| Re: Importing Quicktime 7 into BDS2006 - I can't get it to compile |
 |
Thu, 19 Jul 2007 13:11:17 +100 |
I've never had much luck with Quicktime ActiveX components even when
disabling the floating-point exceptions. I've only ever been able to set
the URL ie
QTControl1.ControlInterface.URL := OpenDialog1.FileName;
but with everything else such as
QTControl1.ControlInterface.MovieControllerVisible := False;
or
QTControl1.ControlInterface.Movie.Play(1);
cause access violations. How do you use the ActiveX control when you had
it working?
I currently use the Quicktime Movie component found here:
http://www.delphipages.com/result.cfm?ID=2416 works a treat for me with
Quicktime 7, but still need to call Set8087CW($133f) and it doesn't
provide all the functionality the the ActiveX control can - if working.
Cheers, harrie.
Warrick Wilson wrote:
> Had to choose between multimedia and activex.using - I figured I'd start
> here.
>
> I wanted to try the newest Quicktime 7.2 control in Delphi Win32 in
BDS2006.
> Had some issues trying to import the ActiveX control/type library
> information, since the Import Component stuff changed. Found an example,
and
> tried to match it with the instructions in John Cromie's book on the new
> Quicktime stuff.
>
> So I've got a control and it looks OK, but when I try to compile a simple
> test application, I'm getting the following error messages:
>
> [Pascal Error] QTOLibrary_TLB.pas(3959): E2010 Incompatible types:
'QTPOINT'
> and 'Variant'
> [Pascal Error] QTOLibrary_TLB.pas(3970): E2160 Type not allowed in OLE
> Automation call
> [Pascal Error] QTOLibrary_TLB.pas(4280): E2010 Incompatible types: 'QTRECT'
> and 'Variant'
> [Pascal Error] QTOLibrary_TLB.pas(4291): E2160 Type not allowed in OLE
> Automation call
> [Pascal Fatal Error] Unit1.pas(7): F2063 Could not compile used unit
> 'QTOLibrary_TLB.pas'
>
> A bit of digging in Google found a set of messages initiated by myself in
> December 2005, dealing with the first QT7 stuff, but back at Delphi 7. I
got
> that working, and it's not the same problem. I've got the code to handle
the
> FPU control word in the program now.
>
> Anyone done this and can point out how I should really import the Quicktime
> stuff into BDS2006?
>
> Thanks.
>
|
| Post Reply
|
| Re: Importing Quicktime 7 into BDS2006 - I can't get it to compile |
 |
Thu, 19 Jul 2007 14:05:30 -070 |
"Warrick Wilson" <warrickw@mercuryonline.com> wrote in message
news:469e5d45$1@newsgroups.borland.com...
> I wanted to try the newest Quicktime 7.2 control in Delphi Win32 in
> BDS2006. Had some issues trying to import the ActiveX control/type library
> information, since the Import Component stuff changed. Found an example,
> and tried to match it with the instructions in John Cromie's book on the
> new Quicktime stuff.
Looks like this was strictly a user problem - I think I generated too many
wrappers for the QTOLibrary when I tried to import it. I redid the import
this morning and got things working.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|