play a .avi in dialog box
play a .avi in dialog box
How do i get a .avi file to play in a dialog box, using the win32 api, in C++? I know you can use mciSendString("play to play an avi, but how do I get it to play in a dialog box? Do i need an animation control? Thanks in advance for any help.
Re:play a .avi in dialog box
No directX.....
I apologize for wasting the time, but I will add something for the benefit of others.
In win32 API c++, you create an animation control, and to play the avi you write
Animate_Open(GetDlgItem(hwndMainDlg, IDC_ANIMATE),"file.avi");
The reason it was not working for me was that the avi I was using was not the correct type. There was no sound, but I guess it was not converted using rle. I believe that is the reason, so for the benefit of everyone, I posted my fix. *smacks head* All that work for one line of code...
I apologize for wasting the time, but I will add something for the benefit of others.
In win32 API c++, you create an animation control, and to play the avi you write
Animate_Open(GetDlgItem(hwndMainDlg, IDC_ANIMATE),"file.avi");
The reason it was not working for me was that the avi I was using was not the correct type. There was no sound, but I guess it was not converted using rle. I believe that is the reason, so for the benefit of everyone, I posted my fix. *smacks head* All that work for one line of code...