摘要: 二维码生成类 .cpp 调用类: .cpp 调用类实例化: 阅读全文
posted @ 2016-04-06 13:41 QQ76211822 阅读(480) 评论(0) 推荐(0) 编辑
摘要: char buf[MAX_PATH * 4] = {0}; SYSTEMTIME st; GetLocalTime(&st); sprintf_s(buf, sizeof(buf) - 1, "%02d-%02d-%02d %02d:%02d:%02d | MyFace_RGB24ToRGB8 Error (%s: %d)", st.wYear, ... 阅读全文
posted @ 2016-03-28 14:58 QQ76211822 阅读(656) 评论(0) 推荐(0) 编辑
摘要: // ConsoleApplication5.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include using namespace std; int _tmain(int argc, _TCHAR* argv[]) { ... 阅读全文
posted @ 2016-03-26 13:48 QQ76211822 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 解决方案,选择属性->配置属性->清单工具->输入和输出->嵌入清单,把是改成否 阅读全文
posted @ 2016-03-25 16:50 QQ76211822 阅读(1131) 评论(0) 推荐(0) 编辑
摘要: 想要插入一条数据,要避免重复插入,又不想折腾两回数据库连接操作,可以参考如下办法。 INSERT INTO table(column1,column2,column3 ...columnN) SELECT value1,value2,value3 ...valueN FROM dual WHERE 阅读全文
posted @ 2016-03-10 10:10 QQ76211822 阅读(6270) 评论(0) 推荐(0) 编辑
摘要: byte *btData = new byte[0]; 然后 Delete[] btData; 会产生什么结果呢,可能会正确也可能会失败.所以要检测生成的数组长度 阅读全文
posted @ 2016-03-02 10:53 QQ76211822 阅读(184) 评论(0) 推荐(0) 编辑
摘要: // List.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <vld.h> using namespace std; ty 阅读全文
posted @ 2016-03-01 15:07 QQ76211822 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 程序遇到如题的运行时报错,参考下面这段文字,采取将自定义类的对象定义改为new方式生成后问题解决。 !!Expression: _CrtIsValidHeapPointer(pUserData) void CImageRecView::OnFileColhistogram() { // TODO: 阅读全文
posted @ 2016-02-17 18:04 QQ76211822 阅读(405) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h" #pragma comment(lib,"SDL.lib") #pragma comment(lib,"SDL2_image.lib") #pragma comment(lib,"SDL_ttf.lib") #include <stdio.h> #includ 阅读全文
posted @ 2016-01-27 13:59 QQ76211822 阅读(671) 评论(0) 推荐(0) 编辑
摘要: m_ListCtrl.SetExtendedStyle(m_ListCtrl.GetExtendedStyle()| LVS_EX_SUBITEMIMAGES | LVS_EX_GRIDLINES); m_ListCtrl.InsertColumn(0, L"#", LVCFMT_CENTER... 阅读全文
posted @ 2016-01-21 16:41 QQ76211822 阅读(1937) 评论(0) 推荐(0) 编辑