Reputation: 6050
How can I play a mpeg
file in MFC
.
Can you tell me any function which can play this type of files.
Upvotes: 4
Views: 2040
Reputation: 2833
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.
Upvotes: 4
Reputation: 473407
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.
Upvotes: 1