|
-
August 1st, 1999, 01:11 AM
#1
ActiveX - MS Animation
I'm desinging an app in which I need to play an AVI file... so I inserted the Microsoft Animation ActiveX componet...
when I call the Open function to open an AVI, it sais that it can't open the AVI file... but it's a valid path... here is the code I'm using:
m_ctlAnimate.Open("C:\\3.avi");
Also, I need to know how to use the Play funtion... I can't figure out how to define the variables for it...
Thanx... Cube
-
August 6th, 1999, 06:26 AM
#2
Re: ActiveX - MS Animation
Hi there,
Try this:
-in the resource editor, click on animate control and place in your dialog.
-Use ctrl+double click on the control you placed in the dialog editor- to create a variable name - eg m_avi.
-In your resource view window,right click on your project name.select import.Choose the avi you want to import.
-enter "AVI" for resource type in the resource type dialog box.
-in your code add:
BOOL CYourAppDlg::OnInitDialog()
{
....
....
m_avi.Open(IDR_AVI);//where IDR_AVI is the "name" of your avi in the resourcewindow
m_avi.Play(0,-1,-1);
that should do it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|