D:\123\st\TrayIcon.cpp(222) : error C2039: 'uVersion' : is not a member of '_NOTIFYICONDATAA' d:\program files\microsoft visual studio\vc98\include\shellapi.h(500) : see declaration of '_NOTIFYICONDATAA'D:\123\st\TrayIcon.cpp(222) : error C206

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 14:14:04

D:\123\st\TrayIcon.cpp(222) : error C2039: 'uVersion' : is not a member of '_NOTIFYICONDATAA' d:\program files\microsoft visual studio\vc98\include\shellapi.h(500) : see declaration of '_NOTIFYICONDATAA'D:\123\st\TrayIcon.cpp(222) : error C206
D:\123\st\TrayIcon.cpp(222) : error C2039: 'uVersion' : is not a member of '_NOTIFYICONDATAA'
d:\program files\microsoft visual studio\vc98\include\shellapi.h(500) : see declaration of '_NOTIFYICONDATAA'
D:\123\st\TrayIcon.cpp(222) : error C2065: 'NOTIFYICON_VERSION' : undeclared identifier
TrueColorToolBar.cpp
WebAttackDlg.cpp
WebCamDlg.cpp
d:\123\common\videocodec.h(133) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
D:\123\st\WebCamDlg.cpp(313) : warning C4800: 'unsigned int' : forcing value to bool 'true' or 'false' (performance warning)
WinXPButtonST.cpp
执行 cl.exe 时出错.
st.exe - 1 error(s), 0 warning(s)
这是错误警告~ 求解决
bool EncodeVideoData(BYTE* pin, int len, BYTE* pout, int* lenr, bool* pKey)
{
BYTE*p;
longs = 1;
BOOLk = true;
if ( !pin || !pout || len != (int)m_lpbmiInput->bmiHeader.biSizeImage || !m_hIC)
return false;
p = (BYTE*)ICSeqCompressFrame(&m_cv, 0, pin, &k, &s);
if (!p)return false;
if (lenr)*lenr = s;
if (pKey)*pKey = k;

CopyMemory(pout, p, s);

return true;
}
是这段代码错了? 怎么该改

D:\123\st\TrayIcon.cpp(222) : error C2039: 'uVersion' : is not a member of '_NOTIFYICONDATAA' d:\program files\microsoft visual studio\vc98\include\shellapi.h(500) : see declaration of '_NOTIFYICONDATAA'D:\123\st\TrayIcon.cpp(222) : error C206
'NOTIFYICON_VERSION' 未定义
你是把一个int的类型赋给了一个bool类型了