TCHAR szMCIString[260]; TCHAR szDevType[245]; TCHAR szFileName[245]; MCIERROR dwReturn; wcscpy(szFileName,L"E:\\v.mp3"); wcscpy(szDevType,L"wavaudio"); _stprintf(szMCIString,_T("open %s type %s alias MyWAV"),szFileName, szDevType); dwReturn = mciSendString(szMCIString, NULL, 0, NULL);
TCHAR szError[128]; //mciSendCommand(mciDevID, MCI_CLOSE, 0, 0L); mciGetErrorString(dwReturn, szError, 128); MessageBox(NULL,szError, L"Error", MB_OK);
wcscpy(szFileName,L"E:\\v.mp3");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)