简体   繁体   中英

How can I play a `mpeg` file in `MFC`

How can I play a mpeg file in MFC .

Can you tell me any function which can play this type of files.

You can embed windows media player in your application, either by using an ActiveX control and the IWMPPlayer interface. Or by using borland's TMediaPlayer . An example can be found here . I would recommend to stick to the first variant (an ActiveX control) if you want to work in MFC as MFC and Borland C++ builder are not an optimal combination.

DirectShow and Video For Windows have no wrapper classes in MFC. Therefore, you will need to use the bare Win32 API (alongside MFC window classes) to use either software playing API.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM