4

How can I play a mpeg file in MFC.

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

Sreekumar P
  • 5,900
  • 11
  • 57
  • 82

2 Answers2

4

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.

Ioan Paul Pirau
  • 2,733
  • 2
  • 23
  • 26
1

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.

Nicol Bolas
  • 449,505
  • 63
  • 781
  • 982