码迷,mamicode.com
首页 >  
搜索关键字:tchar    ( 2435个结果
毕业课题---之ostu算法二值化
二值化ostu算法: #include "stdafx.h" #include   #include   #include   #include   int Otsu(IplImage* src);      int _tmain(int argc, _TCHAR* argv[])   {       IplImage* img = cvLoadImage("L...
分类:编程语言   时间:2015-06-23 13:36:18    阅读次数:131
C++: std::string 与 Unicode 如何结合?
关键字:std::string Unicode转自:http://www.vckbase.com/document/viewdoc/?id=1293一旦知道 TCHAR 和_T 是如何工作的,那么这个问题很简单。基本思想是 TCHAR 要么是char,要么是 wchar_t,这取决于_UNICODE...
分类:编程语言   时间:2015-06-18 21:51:19    阅读次数:259
http协议使用实例
#include #include #include #define MAXSIZE 1024#pragma comment(lib, "Wininet.lib")void urlopen(TCHAR*);int main(int argc, TCHAR* argv[]){TCHAR ch[] = ...
分类:Web程序   时间:2015-06-17 14:41:23    阅读次数:159
控制台console使用MFC库函数,Cout输出CString的方法
新建工程的时候选择:Win32 Console Application在向导的地方勾选MFC头文件支持,确认即可等待初始化文件完成后,VS2010会自动打开 项目名.cpp的文件其中int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])这个相当于main...
分类:编程语言   时间:2015-06-11 12:20:57    阅读次数:193
读文件
#include #include using namespace std; int main(int argc, _TCHAR* argv[]){ FILE* pfile = fopen("D:\\origin.txt", "rb"); if (!pfile) return f...
分类:其他好文   时间:2015-06-10 23:58:50    阅读次数:160
关于截屏截取不到透明窗口的问题
最近试过几套截图软件,发现其中有些无法实现对半透明窗口或主题的图片截取,包括早期版本的QQ截图工具也无法截取,写一个简单抓屏函数的来测试下,以下采用Win32 API方式编写: int _tmain(int argc, TCHAR* argv[], TCHAR* envp[]) { int nRetCode = 0; // 初始化 MFC 并在失败时显示错误 if (!Afx...
分类:其他好文   时间:2015-06-09 17:33:00    阅读次数:213
顺序查找
顺序查找// 顺序查找.cpp : 定义控制台应用程序的入口点。 //#include "stdafx.h" #include #include void _tmain(int argc, _TCHAR* argv[]) { int data[10] = {75,23,98,44,57,12,29,64,38,82}; int i, input...
分类:其他好文   时间:2015-06-06 15:02:30    阅读次数:116
【转】QT QString, wchar_t *, TCHAR, CString和其他字符或字符串类型的转化
//QString to wchar_t *: const wchar_t * encodedName = reinterpret_cast(fileName.utf16()); //QString to char * given a file name: QByteArray fileName =...
分类:其他好文   时间:2015-06-04 15:22:23    阅读次数:239
C++开始之旅行
#include "stdafx.h" //头文件引用int _tmain(int argc, _TCHAR* argv[]) //主函数{ printf("神奇的C++之旅"); //执行输出 return 0; //返回值}// HelloWorld.cpp : 定义控制台应用程序的入口点。//...
分类:编程语言   时间:2015-06-04 13:34:56    阅读次数:125
裸函数
先写一段代码,通过汇编代码进行理解。//这是普通的函数#include void __declspec(naked) Function(){}void CommonFunction(){}int _tmain(int argc, _TCHAR* argv[]){ Function(); ...
分类:其他好文   时间:2015-06-04 13:32:19    阅读次数:186
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!