原文:VC8_Object_Layout_Secret.html 哈哈,从M$ Visual C++ Team的Andy Rich那里又偷学到一招:VC8的隐含编译项/d1reportSingleClassLayout和/d1reportAllClassLayout。看个复杂的例子吧(如下),现在假 Read More
posted @ 2016-09-02 23:49 findumars Views(441) Comments(0) Diggs(0)
通过Delegate创建QCheckBox来实现的Check列,只有在该列进入编辑模式时才能够Check/Uncheck。这显然不是我们想要的,网上翻来翻去,在一个国外论坛中看到了无需Delegate的实现方法,只需重写Model即可: class MyModel : public QSqlQuer Read More
posted @ 2016-09-02 22:56 findumars Views(607) Comments(0) Diggs(0)
Timers (SetTimer and CreateWaitableTimer) in Windows SetTimer The following example creates a timer (that is not attached to a window) whose Timer Pro Read More
posted @ 2016-09-02 22:54 findumars Views(675) Comments(0) Diggs(0)
linux dd命令参数及用法详解 用指定大小的块拷贝一个文件 日期:2010-06-14 点击:3830 来源: 未知 分享至: linux dd命令使用详解 dd 的主要选项: 指定数字的地方若以下列字符结尾乘以相应的数字: b=512, c=1, k=1024, w=2, xm=number Read More
posted @ 2016-09-02 22:42 findumars Views(5591) Comments(0) Diggs(0)
这段时间用VC封装Windows类库,没有MakeObjectInstance处理窗口消息确实不爽,又不想使用MFC的消息映射,这玩意的效率和美观只能呵呵。 至于MakeObjectInstance是什么,Delphi转过来的同学必然很了解这个方便的功能,就是动态构造一个函数把普通函数转到一个类的成 Read More
posted @ 2016-09-02 15:28 findumars Views(508) Comments(0) Diggs(0)