This is what I did:
DWORD dwReturn; MCI_OPEN_PARMS mciOpenParms; mciOpenParms.lpstrDeviceType = _T("MPEGvideo"); mciOpenParms.lpstrElementName = m_tmpFileName; dwReturn = mciSendCommand(NULL, MCI_OPEN, MCI_OPEN_TYPE | MCI_OPEN_ELEMENT, (DWORD)(LPVOID) &mciOpenParms); if (dwReturn) { wchar_t chError[100]; mciGetErrorString(dwReturn,chError,sizeof(chError));
When I run the code, I see that dwReturn is 266, and chError is "An unknown problem while loading the specified device driver." What could be wrong?
Note. I also tried "mpegvideo" instead of "MPEGvideo"; It did not help. Where are all these documents documented?
source share