D:\inter\debug\msado15.tlh(405) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
D:\Inter\SystemTray.cpp(1082) : error C2065: 'IDANI_CAPTION' : undeclared identifierD:\intra\release\msado15.tlh(405) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
D:\Intra\NTLCtrl.cpp(26) : warning C4305: '=' : truncation from 'const int' to 'char'
D:\Intra\NTLCtrl.cpp(26) : warning C4309: '=' : truncation of constant value
D:\Intra\SystemTray.cpp(1082) : error C2065: 'IDANI_CAPTION' : undeclared identifier
D:\Intra\TRV.cpp(588) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
D:\Intra\TRV.cpp(590) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
D:\Inter\SystemTray.cpp(1082) : error C2065: 'IDANI_CAPTION' : undeclared identifierD:\intra\release\msado15.tlh(405) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
D:\Intra\NTLCtrl.cpp(26) : warning C4305: '=' : truncation from 'const int' to 'char'
D:\Intra\NTLCtrl.cpp(26) : warning C4309: '=' : truncation of constant value
D:\Intra\SystemTray.cpp(1082) : error C2065: 'IDANI_CAPTION' : undeclared identifier
D:\Intra\TRV.cpp(588) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
D:\Intra\TRV.cpp(590) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
解决方案 »
- 对话框鼠标消息问题
- 在UDP中使用IOCP,内存以4K的速度增长
- ActiveX控件使用get方式访问web服务器端程序出现乱码问题
- 一个奇怪的问题
- vc6.0下使用WTL库,除了库目录之外,还要加什么才能不报如下错误:error C2872: 'ATL' : ambiguous symbol
- 如何修改右鍵菜単,将自己的応用程序添加進去
- 一个菜鸟问题!有分!
- 在程序中调用其它程序的问题
- 想要实现在PC上通过以太网口发一个包给硬件,然后接受硬件的返回包,以确认通路的正确。如何实现?可不可以不走TCP/IP协议?
- 软件可以申请专利吗?
- (对不起,我没有分了)象WORD中的打印页面设置对话框怎样调用,并且怎样实现调整页面间距的功能,诚恳的感谢
- 怎样在MDI中做出类似Tencent Explorer的界面?就是用一个TabCtrl控制页面显示。
#define IDANI_CAPTION XXXX
这样的语句.如果因为某种原因,VS丢了(多半是你的原因),你可以手工加进去.
如果不是,你就得慢慢找了.
试试看。。
2、在systemTray.cpp中加入了#include "resource.h"
但是还是编译不能成功。
但我昨天有一次是编译成功了的,而且应用程序运行也是正常的……
为什么第一次编译正常,第二次就不正常了呢???
科学应该具备可重复性啊
搜索整个工程看看哪里用到IDANI_CAPTION的然后把控件资源相关的代码都删除,再重新加一个名称和资源ID都一样的控件
是这种情况的话,请将该控件的代码删除。(这种情况加resouce.h是没有用的,因为resouce.h之中已经没有该控件的id)
我还有一点想说:警告不要不理。因为有时警告是致命的。(我遇到过多次,多在非mfc的dll与线程中)
再不行就清除,重建全部。
void CSystemTray::MinimiseToTray(CWnd* pWnd)
{
#ifndef _WIN32_WCE
if (GetDoWndAnimation())
{
CRect rectFrom, rectTo; pWnd->GetWindowRect(rectFrom);
GetTrayWndRect(rectTo); DrawAnimatedRects(pWnd->m_hWnd, IDANI_CAPTION, rectFrom, rectTo); //此处出错了
} RemoveTaskbarIcon(pWnd);
pWnd->ModifyStyle(WS_VISIBLE, 0);
#endif
}void CSystemTray::MaximiseFromTray(CWnd* pWnd)
{
#ifndef _WIN32_WCE
if (GetDoWndAnimation())
{
CRect rectTo;
pWnd->GetWindowRect(rectTo); CRect rectFrom;
GetTrayWndRect(rectFrom); pWnd->SetParent(NULL);
DrawAnimatedRects(pWnd->m_hWnd, IDANI_CAPTION, rectFrom, rectTo); //此处未出错
}
else
pWnd->SetParent(NULL); pWnd->ModifyStyle(0, WS_VISIBLE);
pWnd->RedrawWindow(NULL, NULL, RDW_UPDATENOW | RDW_ALLCHILDREN | RDW_FRAME |
RDW_INVALIDATE | RDW_ERASE); // Move focus away and back again to ensure taskbar icon is recreated
if (::IsWindow(m_wndInvisible.m_hWnd))
m_wndInvisible.SetActiveWindow();
pWnd->SetActiveWindow();
pWnd->SetForegroundWindow();
#endif
}
出错信息:
d:\intra\release\msado15.tlh(405) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
D:\Intra\NewTreeListCtrl.cpp(26) : warning C4305: '=' : truncation from 'const int' to 'char'
D:\Intra\NewTreeListCtrl.cpp(26) : warning C4309: '=' : truncation of constant value
D:\Intra\SystemTray.cpp(1082) : error C2065: 'IDANI_CAPTION' : undeclared identifier
D:\Intra\TRView.cpp(588) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
D:\Intra\TRView.cpp(590) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)