2017年5月19日

Qt 登录面板demo

摘要: QLabel *pImageLabel = new QLabel(this); QLineEdit *pUserLineEdit = new QLineEdit(this); QLineEdit *pPasswordLineEdit = new QLineEdit(this); QCheckBox 阅读全文

posted @ 2017-05-19 17:08 阿兴的平凡世界 阅读(251) 评论(0) 推荐(0) 编辑

c++ _popen读取管道内容(输出内容)例子

摘要: FILE * pPipe = _popen(_postExEPath.toStdString().c_str(), "rb");QString strData;if (pPipe){ while (!feof(pPipe)){std::string tempStr(1024, '\0');fgets 阅读全文

posted @ 2017-05-19 15:27 阿兴的平凡世界 阅读(6566) 评论(0) 推荐(0) 编辑

Qt报错:LIBCMTD.lib(exe_winmain.obj) : error LNK2019: 无法解析的外部符号 _WinMain@16,该符号在函数 "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) 中被引用

摘要: 解决方法:新增qtmaind.lib 阅读全文

posted @ 2017-05-19 14:38 阿兴的平凡世界 阅读(2220) 评论(0) 推荐(0) 编辑

windows 创建匿名管道

摘要: #define CHUNK 25#define STATICBUFFERSIZE 1000typedef struct { HANDLE pipe; char buffer[STATICBUFFERSIZE];} pipeinfo; //初始化输入输出管道句柄 pipeinfo _out = { I 阅读全文

posted @ 2017-05-19 13:00 阿兴的平凡世界 阅读(834) 评论(0) 推荐(0) 编辑

导航