How can I play the mpeg file in MFC .
mpeg
MFC
Can you tell me any function that can play files of this type.
You can embed the Windows media player in the application using the ActiveX control and the IWMPPlayer interface . Or using borland TMediaPlayer . Below is an example here . I would recommend sticking with the first option (ActiveX control) if you want to work in MFC, since MFC and Borland C ++ builder are not the best combination.
DirectShow and video For Windows, there are no wrapper classes in MFC. Thus, you will need to use the open Win32 API (along with the MFC window classes) to use either the software losing API.