Problem with an ActiveX control

J

Jim Walsh

I'm developing an application that uses the Apple QuickTime ActiveX control.
When I attempt to insert it into my application, I get unusual errors. So, I
have attempted to debug this by using it in a variety of applications and
development tools. I get error messages that don't really tell me what is
going on. Here are some examples of what I am getting.

1. In PowerPoint: New blank presentation. Controls toolbar: More controls
button, scroll down and select "Quick Time Object". The message I get says
"Object Library not registered".

2. In Visual Studio .NET 2003, ActiveX Control Test container: Edit...Insert
new control...select Quick Time Object from the list. I get an error message
saying "Failed to create control: Unspecified error".

3. In Visual Studio .NET 2003, OLE/COM Object Viewer, I am able to examine
Quick Time Object. I don't see anything obviously wrong with it.

4. In Visual FoxPro 8, I have added the QuickTime control in an OLE
Container. When I move to the page containing the object, I get an error
from my Activate code where I am assigning a file to be viewed. The message
says: "OLE Exception error: Exception c0000005. OLE object may be corrupt."
If I click ignore, the form continues to run normally, and the QuickTime
control displays the movie without error.

It appears to me that the control is properly registered.

I have completed removed the QuickTime control, and then downloaded and
installed the latest version. I still get the same errors.

I would appreciate some guidance on how to fix this problem. I'm afraid that
the answers I will get here are "Go talk to Apple", and of course I will get
the same answer over there. But, I believe that MS is heading toward cross
platform compatibility.

Thanks in advance.

Jim
 
G

Gary Chang

Hi Jim,

Currently I am looking for somebody who could help you on it. We will reply
here with more information as soon as possible.
If you have any more concerns on it, please feel free to post here.


Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
C

Chua Wen Ching

Hi Jim Walsh,

Hi there.

I personally face this error with me before.

Try this:

1) Download this tool (a recommended solution on the internet):
http://members.fortunecity.com/birbilis/QT4Delphi/downloads/QTVRControlX_unregistered_20040513a.exe

2) When you are done, open powerpoint 2003, or whatever version, click on View -> Toolbar -> Control Toolbox.

3) Control Toolbox opens, select More Controls.

4) From the list, please select QTVRControlX Control.

5) Click it on the slide.

6) The empty control will appear. You can see 8 circle around it. In the middle right click and choose properties.

7) Select the Filename, please place your full path of your quicktime file (e.g. c:\quicktime_movies\spiderman2.mov)

Hope it helps you. Good Luck.
 
J

Jim Walsh

I have marginal success with the QRVRControlX ActiveX control.

1. I have installed it in PowerPoint, and it displays the movie, but I don't
see any way to control it. Start, stop, etc. like I can do with a QuickTime
control.

2. When I install it in an OLE Container in Visual FoxPro, set the FileName
property to the MOV file, and then display that form, there are no error
messages, but also,nothing is visible.

Can I get further help with this control, or preferably, help with getting
the QuickTime ActiveX control working?

Thanks,
Jim


Chua Wen Ching said:
Hi Jim Walsh,

Hi there.

I personally face this error with me before.

Try this:

1) Download this tool (a recommended solution on the internet):
http://members.fortunecity.com/birbilis/QT4Delphi/downloads/QTVRControlX_unregistered_20040513a.exe

2) When you are done, open powerpoint 2003, or whatever version, click on
View -> Toolbar -> Control Toolbox.
3) Control Toolbox opens, select More Controls.

4) From the list, please select QTVRControlX Control.

5) Click it on the slide.

6) The empty control will appear. You can see 8 circle around it. In the
middle right click and choose properties.
7) Select the Filename, please place your full path of your quicktime file
(e.g. c:\quicktime_movies\spiderman2.mov)
 
P

Peter Huang

Hi Jim,

I think you may try to add two buttons to do the start and stop jobs as
below.
Private Sub CommandButton1_Click()
Slide1.QTVRControlX1.GoToBeginningOfMovie
Slide1.QTVRControlX1.StartMovie
Slide1.QTVRControlX1.ControllerVisible = True
Slide1.QTVRControlX1.ControllerEditing = True
Slide1.QTVRControlX1.ControllerActive = True
End Sub

Private Sub CommandButton2_Click()
Slide1.QTVRControlX1.StopMovie
End Sub

As for the question 2, why you not try to use the ActiveX control directly?
You may try to click on the activeX control to let it getfocus.

I think you may try to contact apple for quicktime support or post the
question in the forum below.
http://discussions.info.apple.com/

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Jim Walsh

Peter,

This only partly solved my problem.

1. In Powerpoint, when I insert the QTVR control, I am presented with a
dialog box with checkboxes for a variety of items. Checking these does seem
a bit inconsistent: sometimes the boxes seem locked, other times not. But,
if I can get them all checked, then the QTVR control does seem to work when
inserted in Powerpoint.

2. I haven't been able to get the QTVR control to work at all in a VFP form.
I have tried inserted the equivalent of the code you describe below in the
Activate event for the form, but the control continues to be invisible when
the form is run. Clicking on the area where I know the control is located to
bring it into focus does not make it visible.

3. Getting a QuickTime control to work in a VFP form has been my primary
goal. I have asked my clients why they want the QuickTime control instead of
MediaPlayer. They tell me that their experience is that the QT movies are
much better quality. So, I am still trying to get that to work.

4. I am getting stuck here. I have also been working the Apple side of the
problem with no response there. I think this is common when trying to
integrate components from two different vendors: "Talk to the other guy."

Can anyone give me any thoughts on how to debug the Ole error that I get
when I use the QT plugin ActiveX control in VFP? From my original posting:

In Visual FoxPro 8, I have added the QuickTime control in an OLE
Container. When I move to the page containing the object, I get an error
from my Activate code where I am assigning a file to be viewed. The message
says: "OLE Exception error: Exception c0000005. OLE object may be corrupt."
If I click ignore, the form continues to run normally, and the QuickTime
control displays the movie without error.

Thanks in advance for any help.

Jim
 
P

Peter Huang

Hi Jim,

Thank you for your reply.
The OLE exception is a general exception, it may be caused by that the type
library information is inconsistent with the activex image. It needs
further research about what has happened in the quicktime activex, which is
out of our control.

So far I think you may try to use the QuickTime ActiveX control in VB6 as
vb6 is an language of more compatibility with COM and OLE. If you have any
concern about using the VB6 you may try to encapsulate the quicktime
activex control in a VB6 acitvex control and then use it in the foxpro form
to see if that works for you.

You may have a try and let me know the result.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Jim Walsh

Peter,

Thanks for your continued follow-ups. I will try your suggestions and get
back to you.

Can you give me some more information about how to "encapsulate the
quicktime activex control in a VB6 activex control"?

Thanks,
Jim
 
P

Peter Huang

Hi Jim,

We can create a new active control project in vb6 and write the code as
below
Public Sub Test()
UserControl.QTActiveXPlugin1.AddParam "SRC", "c:\Program
Files\QuickTime\Sample.mov"
UserControl.QTActiveXPlugin1.AddParam "AUTOPLAY", "True"
End Sub

Private Sub UserControl_Initialize()
UserControl.QTActiveXPlugin1.Height = UserControl.Height
UserControl.QTActiveXPlugin1.Width = UserControl.Width
End Sub

Private Sub UserControl_Resize()
UserControl.QTActiveXPlugin1.Height = UserControl.Height
UserControl.QTActiveXPlugin1.Width = UserControl.Width
End Sub

Now we can use the usertrol in VB6 normal standard project and run it as
below
Private Sub Command1_Click()
Me.UserControl11.Test
End Sub

We can expose the method we need to call out of the usercontrol. Here is
the Test method for instance.



Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top