韶子

梦想皆有神助...

2012年4月20日

关于 QtDBus 的种种

摘要: QtDbus用于进程间的通信,可靠、稳定。具体实现也很方便,文章http://www.cuteqt.com/blog/?p=167和http://www.cuteqt.com/blog/?p=178里讲得非常清楚。但是实现起来还是遇到了一些麻烦。远程调用函数不能使用指针类型作为参数或者返回值。在XXX.h函数里加入诸如 int* func(); 或 void func(int *);之类的函数,然后使用qdbuscpp2sxml工具生成xml文件时,可以发现这样的函数根本没有写入xml文件中。返回值和参数的总个数不能超过两个。否则的话虽然可以编译通过,但是运行时会报错说找不到函数。对于问题.. 阅读全文

posted @ 2012-04-20 22:02 韶子 阅读(652) 评论(0) 推荐(0) 编辑
程序调试小bug

摘要: ------------------------------------------------------------------------------------------一段简单的代码:std::ifstream input (fileName); while (input) { string s; input >> s; cout << s << endl;};编译报错:error C2679: binary '>>' : no operator found which takes a right-hand opera 阅读全文

posted @ 2012-04-20 21:46 韶子 阅读(149) 评论(0) 推荐(0) 编辑