vs2010+opencv2.40用cvnamewindows等函数做的。#include "iostream"#include "cv.h"#include "highgui.h"using namespace std;int _tmain(int argc, _TCHAR* argv[]){ ....
分类:
其他好文 时间:
2015-12-24 00:30:01
阅读次数:
299
最近在编程中经常遇到需要多字节字符与宽字节字符相互转换的问题,一直自己贴那几句代码。觉得麻烦,于是就自己写了一个类来封装wchar_t与char类型间的转换,其他的,诸如:CString\ LPWSTR\TCHAR CHAR\LPSTR之间也是一样用头文件:#ifndef USE_H_ #defi....
分类:
编程语言 时间:
2015-12-21 09:14:01
阅读次数:
206
2015-12-17 1 //获取指定图层上所有实体ID 2 AcDbObjectIdArray GetAllEntityId(const TCHAR* layername) 3 { 4 AcDbObjectIdArray entIds; 5 bool bFilterlayer = ...
分类:
其他好文 时间:
2015-12-17 12:27:48
阅读次数:
402
①、CString 类对象的初始化:CString str; CString str1(_T("abc")); CString str2 = _T("defg");TCHAR szBuf[] = _T("kkk"); CString str3(szBuf); CString str4 = szBuf...
分类:
其他好文 时间:
2015-12-14 21:25:05
阅读次数:
329
使用所duilib的人定会知道cduistring类型,先看看这个类是怎么定义的:class UILIB_API CDuiString
{
public:
enum { MAX_LOCAL_STRING_LEN = 127/*63*/ }; CDuiString();
CDuiString(const TCHAR ch);...
分类:
编程语言 时间:
2015-12-12 17:13:00
阅读次数:
236
第一次使用Windows Live Writer,一堆问题,不知道是中国强大的局域网防火墙问题还是咋的,弄了半天。 1、C++的测试代码: int _tmain(int argc, _TCHAR* argv[]) { Test(); system("pause"); return 0; } int ...
01.#include "stdafx.h" 02.#include 03.#include 04. 05.int _tmain(int argc, _TCHAR* argv[]) 06.{ 07. /** 08. * map中的每个元素都是一个pair类型 09...
分类:
编程语言 时间:
2015-11-27 19:45:29
阅读次数:
218
#include "stdafx.h" #include using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int arr1[3]; int arr2[3]; int arr3[3]; int ...
分类:
编程语言 时间:
2015-11-27 13:02:26
阅读次数:
191
#include "stdafx.h"#include #include int _tmain(int argc, _TCHAR* argv[]){ int a[5] = {0,2,5,7,8}; int b[5] = {1,3,4,6,9}; int c[10],i,x...
分类:
编程语言 时间:
2015-11-24 18:33:29
阅读次数:
170
参考资料:http://www.cnblogs.com/fuyanwen/p/3200536.htmlhttp://www.cnblogs.com/wendao/archive/2012/07/27/2612597.html不能直接用:QString szqFileName = QString::f...
分类:
其他好文 时间:
2015-11-17 23:11:01
阅读次数:
192