调试后出现 m_wDeviceID' : undeclared identifier是何意?
hdn63 2003-02-24 03:17:40 我编了一个程序,在调试时出现 m_wDeviceID' : undeclared identifier 的提示,是何意?怎样注明?谢谢!
#include "stdafx.h"
#include "play.h"
#include "playDlg.h"
#include "mmsystem.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
。。。。。。。
void CPlayDlg::Onopen()
{
// TODO: Add your control notification handler code here
CString FileName = "c:\\windows\\00_19_00.avi";
MCI_OPEN_PARMS OpenParms;
OpenParms.lpstrDeviceType = " avivideo";
OpenParms.lpstrElementName = FileName;
if (mciSendCommand(NULL, MCI_OPEN, MCI_OPEN_ELEMENT / MCI_OPEN_TYPE,(DWORD)(LPVOID) &OpenParms))
AfxMessageBox("打开文件失败"); ;
m_wDeviceID = OpenParms.wDeviceID;
MCI_SET_PARMS SetParms;
SetParms.dwTimeFormat=MCI_FORMAT_MILLISECONDS;
if (mciSendCommand(m_wDeviceID, MCI_SET, MCI_SET_TIME_FORMAT,(DWORD)(LPVOID) &SetParms))
AfxMessageBox("打开文件失败"); ;
}