自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 资源 (5)
  • 收藏
  • 关注

原创 QTimer signal 影响

#include "test.h"#include <QTimer>#include <QDateTime>#include <Windows.h>test::test(QWidget *parent, Qt::WFlags flags) : QMainWindow(parent, flags){ ui.setupUi(this);...

2019-12-27 15:30:56 272

转载 QPixmap load失败

QPixmap pixmap;pixmap.load(“D:\\lc.jpg”);总是返回false原因是因为运行exe时,差一个库: imageformats\qjpeg.dll需要把Qt下 plugins/imageformats文件夹拷贝到工程exe目录原文链接:https://blog.csdn.net/liukang325/article/details/7287...

2019-09-30 14:15:24 1361

原创 QObject: Cannot create children for a parent that is in a different thread 问题记录

记录一下,遇到过一个使用QNetworkReply下载图片没成功的问题, 排查步骤如下:1、finished() 信号没触发,确定connect没写错2、发现readyread()也没触发3、vs断点调试到connect前时,有输出信息“QObject: Cannot create children for a parent that is in a different thread”...

2019-05-30 11:37:04 757

转载 This application failed to start because it could not find or load the Qt platfrom plugin "windows"

用VS 2015进行QT程序开发时,在vs界面中调试编译程序时没有问题,但是进入到生成的exe文件夹下运行exe文件是却总是跳出一个提示框:This application failed to start because it could not find or load the Qt platfrom plugin "windows"把Qt安装目录 plugins\platform...

2019-04-26 14:58:23 1307

转载 非阻塞accept recv

unsigned __stdcall CNetServer::AcceptThread(LPVOID lpParam){CNetServer *p = (CNetServer*)lpParam;sockaddr_in addr;int n = sizeof(addr);fd_set fds;timeval timeout;timeout.

2014-04-14 12:00:04 606 3

原创 串口封装类

#ifndef  _StkComm_H#define  _StkComm_H#include #include #include #include #include "def.h"using namespace std;//串口数据回调函数typedef void(CALLBACK *OnComDataCallback)(DWORD dwSi

2014-03-19 23:34:59 803

原创 获取本机ip和外网ip地址

//获取外网地址void GetNetIPAddress(__out std::string& IpAddr){static std::string LocalIpAddr;if(LocalIpAddr.empty()){char pName[256] = {0};gethostname(pName,sizeof(pName));hostent *pHo

2014-03-19 23:25:53 1486

原创 中文和unicode字符的相互转换

中文转换成unicode:wchar_t* ChangeCODE(const wchar_t *lpText){int nLen = wcslen(lpText)+1;wchar_t *wcsTmp = new wchar_t[nLen];memset(wcsTmp,0,nLen);wcscpy_s(wcsTmp,nLen,lpText);wchar_t *

2014-03-19 23:23:56 1057

原创 多字节和宽字节的互相转换函数

string UnicodeToWideChar(const wstring &str){int nLen = WideCharToMultiByte(CP_ACP,0,str.c_str(),-1,NULL,0,NULL,NULL);char *pStr = new char[nLen];memset(pStr,0,sizeof(char)*nLen);WideCha

2014-03-19 23:20:14 622

原创 vector string <--> text

#include #include #include using namespace std;int StringsToText(const vector &vtStr, const string &strFile){fstream file(strFile.c_str(),ios::out);if(!file){return 1;}file

2014-03-19 23:19:18 628

转载 vc截取整个屏幕保存成bmp图片

void CatchFullScreenToPic(const char *chFileName){CDC *pDC = CDC::FromHandle(::GetDC(NULL));  //获取当前整个屏幕DCint nBitPerPixel = pDC->GetDeviceCaps(BITSPIXEL);  //获取颜色模式int nWidth = pDC->G

2014-03-19 23:13:28 2295

IOS,ipa安装工具,越狱工具

可以用来越狱、刷机、IPA安装、IOS设备查看。

2014-06-17

使用wxWidgets进行跨平台程序开发

使用wxWidgets进行跨平台程序开发 PDF文档

2014-03-19

简单的ftp封装类

很简单的一个ftp封装类,包括了服务器和客户端

2014-03-19

销毁后重新创建的问题

代码有问题,只是为了请教的 什么问题呢

2011-12-08

进程注入技术.pdf

有关进程注入技术的内容,用是的pdf格式。

2009-11-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除