DoubleLi

qq: 517712484 wx: ldbgliet

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年9月29日

摘要: Cppcheck is an analysis tool for C/C++code. Unlike C/C++ compilers and many other analysis tools, it doesn’t detect syntax errors. Cppcheck only detects the types of bugs that the compilers normally fail to detect. The goal is no false positives.Cppcheck is rarely wrong about reported errors. But th 阅读全文
posted @ 2013-09-29 21:04 DoubleLi 阅读(3120) 评论(0) 推荐(0)

摘要: 类似QQ与360软件,消息提示有两种。上下浮动、渐入渐出。1、上下浮动提示框实现机制,定时器响应上下浮动消息。主要API:MoveWindow。源码如下UpDownTipDlg.h、UpDownTipDlg.cpp。UpDownTipDlg.h[cpp]view plaincopy /**@brief上下浮动提示框*@date2012-8-9*/#pragmaonce//CUpDownTipDlgdialogclassCUpDownTipDlg:publicCDialog{DECLARE_DYNAMIC(CUpDownTipDlg)public:CUpDownTipDlg(CWnd*pPare 阅读全文
posted @ 2013-09-29 21:03 DoubleLi 阅读(1703) 评论(0) 推荐(0)

摘要: 类似360消息弹出框,实现方式一见http://blog.csdn.net/segen_jaa/article/details/7848598。本文采用另外的API实现渐入渐出效果。主要API:SetLayeredWindowAttributes。实现功能:采用管理器控制消息框每次只显示一个。消息框独立显示在右下角,不随主窗口放大缩小变化。鼠标进入消息框区域,渐入渐出效果停止。1、消息框实现创建对话框类CMsgTipDlg,设置对话框属性。Tool Window:true。设置对话框为消息框,任务栏上将没有图标。Topmost:true。设置对话框置顶。MsgTipDlg.h。[cpp]vie 阅读全文
posted @ 2013-09-29 21:02 DoubleLi 阅读(821) 评论(0) 推荐(0)

摘要: 一款开源源码检测工具。简单易用。官网网址:http://cppcheck.sourceforge.net/软件可直接官网下载。[plain]view plaincopy FeaturesOutofboundscheckingCheckthecodeforeachclassCheckingexceptionsafetyMemoryleakscheckingWarnifobsoletefunctionsareusedCheckforinvalidusageofSTLCheckforuninitializedvariablesandunusedfunctions使用过程中,分析数据结果如下: Cpp 阅读全文
posted @ 2013-09-29 20:59 DoubleLi 阅读(670) 评论(0) 推荐(0)