一.简介 log4cplus是C++编写的开源的日志系统,功能非常全面.本文介绍如何在Windows+VS2008中使用该日志库。二.下载 可从网站[url]http://log4cplus.sourceforge.net[/url]上去下载 log4cplus 1.0.3 rc9,具体地址[url... Read More
posted @ 2015-11-25 08:05
findumars
Views(736)
Comments(0)
Diggs(0)
C风格的强制类型转换(Type Cast)很简单,不管什么类型的转换统统是: TYPE b = (TYPE)a C++风格的类型转换提供了4种类型转换操作符来应对不同场合的应用。 const_cast,字面上理解就是去const属性。 static_cast,命名上理解是静态类型转换。如... Read More
posted @ 2015-11-25 08:03
findumars
Views(587)
Comments(0)
Diggs(0)
在QT中,QTableWidget处理二维表格的功能很强大(QTableView更强大),但有时我们只想让它显示少量数据(文字和图片),这时,使用QTableWidget就有点不方便了(个人感觉)。所以我对QTableWidget再做了一次封装(SimpleTable类),让它在处理小型表格时更方便... Read More
posted @ 2015-11-25 08:01
findumars
Views(771)
Comments(0)
Diggs(0)
MFC和QT的消息循环机制不同,所以,要让QT写的DLL可以供MFC调用,要做一点特殊的处理 [cpp] view plaincopyprint? #include <qmfcapp.h> #include <qwinwidget.h> #include <QtGui> #include <QtGu Read More
posted @ 2015-11-25 07:59
findumars
Views(6724)
Comments(2)
Diggs(0)
一般情况下,我们用Qt编译出来的程序是要依赖于系统Qt库的,也就是这个程序移到别的没有安装Qt库的系统上是不能使用的。会提示缺少……库文件之类的错误。这就是动态编译的结果。但是如果我们想编译一个程序,这个程序在发给别人后,他们可以直接打开,而不需要特别地去先安装Qt库,那就需要采用静态编译了。在Li... Read More
posted @ 2015-11-25 07:56
findumars
Views(3351)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号