摘要: 1.mainwindow.obj:-1: error: LNK2019: 无法解析的外部符号 "public: __thiscall QwtPlot::QwtPlot(class QWidget *)" (??0QwtPlot@@QAE@PAVQWidget@@@Z),该符号在函数 "public:... 阅读全文
posted @ 2014-11-27 11:26 M.Bing 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.amobbs.com/thread-5585526-1-1.html8楼封装一个String类型typedef struct{ char* charArr; int16_t len;}StringStruct;#define String(n,m) \ Strin... 阅读全文
posted @ 2014-06-23 15:32 M.Bing 阅读(853) 评论(0) 推荐(0) 编辑
摘要: [原创]QT在嵌入式系统中显示中文的方法 此篇文章主要借鉴:http://zzqh007.blog.163.com/blog/static/44434847201011312168296/ 移植QT4.5到mini2440上,遇到在QT中显示中文的问题,根据从网上搜索的资料,现将解决方法总结如下... 阅读全文
posted @ 2014-05-31 17:53 M.Bing 阅读(4474) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-04-06 20:34 M.Bing 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 【转载】Linux Shell 中的反引号,单引号,双引号反引号位 (`) 位于键盘的Tab键的上方、1键的左方。注意与单引号(')位于Enter键的左方的区别。 在Linux中起着命令替换的作用。命令替换是指shell能够将一个命令的标准输出插在一个命令行中任何位置。 如下,shell会执行反引号中的date命令,把结果插入到echo命令显示的内容中。 [root@localhost sh]# echo The date is `date` The date is 2011年 03月 14日 星期一 21:15:43 CST 单引号、双引号用于用户把带有空格的字符串赋值给变量事... 阅读全文
posted @ 2014-04-06 20:30 M.Bing 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1 shell 的$! ,$?, $$,$@$n $1 the first parameter,$2 the second...$# The number of command-line parameters.$0 The name of current program.$? Last command or function's return value.$$ The program's PID.$! Last program's PID.$@ Save all the parameters.almost any shell book will tal... 阅读全文
posted @ 2014-04-06 20:21 M.Bing 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 【原创】修改WIFI保持连接脚本 项目中用到wifi,由于无线网络的不稳定性,可能会造成wifi的掉线,这就需要在程序中判断网络的是否联通,并且能在断线后继续搜寻无线网络并重新连接。并且因为wifi连接有许多现成的工具,所以在这里就利用shell脚本来实现此功能。 本篇博客主要是记录我修改此脚本到当前项目的记录,包含shell脚本的一些用法和wifi连接工具的用法:一、初始化函数init_varinit_var() { #until [ -d $SYSFS ] ; do sleep 1; done #find the first useable wifi card local wifi_d.. 阅读全文
posted @ 2014-04-05 21:52 M.Bing 阅读(2136) 评论(0) 推荐(0) 编辑
摘要: 一般有两个函数的时间分辨率较好: 1.int gettimeofday(struct timeval *restrict tp, void *restrict tzp);成功返回0,不成功返回-1和错误码errno。 例: #include #include #define MILLION 1000000L void function_to_time(void);//要测试的函数 int main(void){ long timedif; struct ... 阅读全文
posted @ 2014-03-31 14:37 M.Bing 阅读(497) 评论(0) 推荐(0) 编辑
摘要: cc1: error: unrecognized command line option “-iquote” 交叉编译libfaad时遇到此错误 解决方法是:修改libfaad文件夹下的Makefile的L199: 修改:199 AM_CFLAGS = -iquote $(top_srcdir)/include 为199 AM_CFLAGS = -I $(top_srcdir)/include 阅读全文
posted @ 2014-03-31 10:20 M.Bing 阅读(771) 评论(0) 推荐(0) 编辑
摘要: 1,右键关联chm文件的“打开方式”到\Windows\HH.exe 2,在命令行运行regsvr32 itss.dll 3,在命令行运行regsvr32 hhctrl.ocx 阅读全文
posted @ 2013-11-13 15:37 M.Bing 阅读(203) 评论(0) 推荐(0) 编辑