求用 API 播放 AVI 的源码 ,
谢谢
我试了 youall 兄,确实不行
(win32 application 工程下播放)
LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_INITDIALOG:
return TRUE;
case WM_COMMAND:
if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
{
EndDialog(hDlg, LOWORD(wParam));
return TRUE;
}
break;
case WM_LBUTTONDOWN:
LPCTSTR lpcszFileToOpen = _T("C:\\winnt\\clock.avi");
TCHAR lpszCmdStr[300] = {0};
_tcscpy(lpszCmdStr, _T("play "));
_tcscat(lpszCmdStr, lpcszFileToOpen);
_tcscat(lpszCmdStr, _T(" fullscreen"));
DWORD x = mciSendString(lpszCmdStr,0,0,0) ; //播放 AVI
break;
}
return FALSE;
}
哪位大哥,可以给个详细的源码啊?
感谢不尽