最近用Eclipse调试我的红米的时候,总是出现adb refused request: closed,而且调试一直停在waiting for debugger不动了,在网上搜了一下,有的说用adb kill-server然后再adb start-server,还有的说重启Eclipse或者重启电....
分类:
数据库 时间:
2014-09-03 11:06:26
阅读次数:
230
通常都是编码转换的问题,注意如以下红字代码那样设置正确的编码QFile _file(_f_path); try{ if(_file.open(QIODevice::ReadOnly)) { QTextStream _txt_stream(&_file); _txt_stream.setC...
分类:
其他好文 时间:
2014-09-03 00:07:25
阅读次数:
461
fprintf() 、sprintf、snprintf:int fprintf(FILE *stream, const char *format, ...);int sprintf(char *str, const char *format, ...);int snprintf(char *str,...
This can be easily solved by allowing MARS in your connection string. AddMultipleActiveResultSets=trueto the provider part of your connection string (...
分类:
其他好文 时间:
2014-09-02 12:16:14
阅读次数:
178
Mencoder 转 flvmencoder -ffourcc FLV1 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -of lavf -oac mp3lame -lameopts aq=9:cbr:br=64:vol...
分类:
编程语言 时间:
2014-09-02 12:13:24
阅读次数:
247
这里为了使代码更加简洁,直接用了transfer来挂接两路流的传输操作。// 初始化文件输入流 tb_stream_ref_t istream = tb_stream_init_from_url("/home/file.txt"); // 初始化文件输出流 tb_stream_re...
分类:
其他好文 时间:
2014-09-02 12:03:04
阅读次数:
168
除了static_stream还有stream可以进行按位读写之外,TBOX还提供了更加原始、更加底层的位数据操作接口,例如直接对某个数据指针的位读取操作,可以使用utils库的tb_bits_get_xxx和tb_bits_set_xxx 系列接口, 这个更加的轻量:
分类:
其他好文 时间:
2014-09-02 12:00:14
阅读次数:
194
1、应用与原理
在C语言中又是我们无法给出一个函数参数的列表,比如:
int printf(const char *format, ...); int fprintf(FILE *stream, const char *format, ...);
这是我们使用到了可以变参数,也就是使用...代表0个或多个参数。
那么编译器如何获取/...
分类:
其他好文 时间:
2014-09-02 09:06:44
阅读次数:
362
some sections in xml are always repeated,I received these file by wcf.I thought it's caused by buffersize of wcf or flush methodof stream.(I don't wha...
分类:
其他好文 时间:
2014-09-01 15:19:03
阅读次数:
279
__callphp内置函数:当请求一个对象的方法不存在是会调用此方法:/* *@param string $method 请求方法名称。 *@param array $params 请求方法的参数。 */function __call ($method,$params);stream_context...
分类:
Web程序 时间:
2014-09-01 12:11:03
阅读次数:
220