作业帮 > 综合 > 作业

D:\123\st\TrayIcon.cpp(222) : error C2039: 'uVersion' : is n

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/24 17:57:32
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;
}
是这段代码错了? 怎么该改
'NOTIFYICON_VERSION' 未定义
你是把一个int的类型赋给了一个bool类型了
再问: D:\123\st\WebCamDlg.cpp(313) : warning C4800: 'unsigned int' : forcing value to bool 'true' or 'false' (performance warning) 这个呢
再答: 和int的情况一样的啊,你把无符号整型赋给了bool类型啊,类型不匹配的时候都是会报警告的
再问: 我那句代码应该怎么写 大神
再答: BOOL k = true; int k=1