Click here to Skip to main content
15,889,419 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi everyone,

I want to play a avi file with windows API funtions. I need a code.

Thanks.
Posted
Updated 2-Mar-11 11:24am
v2
Comments
Henry Minute 2-Mar-11 17:25pm    
Then use a search engine to find an example. There are thousands of them out there.

1 solution

 
Share this answer
 
Comments
ant_eng_m 2-Mar-11 17:57pm    
case WM_CREATE:
err = mciSendString(L"Open 12.avi type AVIVideo Alias Video", NULL,0,NULL);
mciSendString( _T( "put Video window at 0 0 400 400" ),NULL,0,NULL);
err = mciSendString(L"Play 12.avi wait",NULL,0,NULL);
it is working but only for voice,it gives "cannot find angle of vids:mjpg" error on video window

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900