先看两个demo: 一.在类test1中调用函数print() ,把print()的函数指针传递给test1的函数指针参数 test1.h: [cpp] view plain copy #include <stdio.h> #include <iostream> using namespace st Read More
posted @ 2016-11-06 06:37 findumars Views(3402) Comments(0) Diggs(0)
ddd Read More
posted @ 2016-11-04 20:42 findumars Views(258) Comments(0) Diggs(0)
关于接收: Receive WM_COPYDATA messages in a Qt app. 还有个中文网站: 提问: 如何在Qt中模拟MFC的消息机制 关于发送: 用Qt在Windows下编程,如何调用Windows系统的API? 稍后会把内容补上 后来,Qt5把winEvent函数废弃掉了,换 Read More
posted @ 2016-11-04 20:02 findumars Views(3526) Comments(0) Diggs(0)
https://msdn.microsoft.com/en-us/library/windows/desktop/aa372721(v=vs.85).aspx https://msdn.microsoft.com/en-us/library/windows/desktop/aa372708(v=vs Read More
posted @ 2016-11-04 19:00 findumars Views(2288) Comments(0) Diggs(0)
应用场景 当你下载别人的源码的时候,而别人的源码跟你自己电脑里面的编码不一致的情况下将会出现乱码,但是如果要一个个转换编码的话那么那样所需要花的时间太多,所以就有必要写一个软件递归遍历项目下面所有的文件,从而实现自动转换编码,因为项目下面又有文件夹,所有需要使用递归实现。 实现原理如下 第一步:先用 Read More
posted @ 2016-11-04 16:55 findumars Views(392) Comments(0) Diggs(0)