码迷,mamicode.com
首页 >  
搜索关键字:tchar    ( 2435个结果
数组下标索引的循环原来可以这样写
一般我会这样写: 1 #include "stdafx.h" 2 #include 3 4 int _tmain(int argc, _TCHAR* argv[]) 5 { 6 int arr[]={100,101,102,103,104,105,106,107,108,109}; 7 ...
分类:编程语言   时间:2015-01-08 19:45:42    阅读次数:170
关于非对话框的透明窗口
#include "StdAfx.h"#include "TransWnd.h"CTransWnd::CTransWnd(void){ const TCHAR szClassName[] = TEXT ("TransWindow") ; WNDCLASS wndclass ; wndclass.s....
分类:其他好文   时间:2015-01-04 06:22:43    阅读次数:171
cannot convert from '_TCHAR *' to 'char *'
Reference:Why can't convert TCHAR* to char*Need toUse Multi-Byte Character Set in project's setting.If your project defines UNICODE/_UNICODE, which is...
分类:其他好文   时间:2014-12-30 18:36:16    阅读次数:151
C++多态
有一个注意要点,必须用指针,不能用A a = B()的形式。#include "stdafx.h"#include "Base.h"#include "Class2.h"int _tmain(int argc, _TCHAR* argv[]){ Base* base = new Class2(...
分类:编程语言   时间:2014-12-29 13:38:14    阅读次数:143
struct结构会增加程序的开销
struct结构一方面能够加强对变量的管理,增加程序的可读性,但是另一方面,结构体也会加大程序的开销。 看下面一段代码: struct TEST_S { int a; int b; float c; }; int _tmain(int argc, _TCHAR* argv[]) { TEST_S ts; int a; int b; int c; ts.a = 100; ts....
分类:其他好文   时间:2014-12-26 20:24:18    阅读次数:307
史上最全的iOS面试题及答案
史上最全的iOS面试题及答案1.写一个NSString类的实现+(id)initWithCString:(c*****tchar*)nullTerminatedCStringencoding:(NSStringEncoding)encoding;+(id)stringWithCString:(c*****tchar*)nullTerminatedCStringencoding:(NSStringEncoding)encoding{NSString*obj;obj=[self..
分类:移动开发   时间:2014-12-21 02:01:35    阅读次数:825
Win32 SDK - 打开文件对话框
OPENFILENAME ofn; // common dialog box structure TCHAR szFile[MAX_PATH]; // buffer for file name // Initialize OPENFILENAME ZeroMemory...
分类:Windows程序   时间:2014-12-18 13:19:26    阅读次数:365
C++进程检测,发现进程路径,关闭进程(二)
上一章使用的函数比较复杂,本章直接使用根据进程ID号并使用GetModuleFileNameEx函数实现进程路径的获取 #include "stdafx.h" #include #include "stdio.h" #include #include "Psapi.h" int _tmain(int argc, _TCHAR* argv[]) { int n...
分类:编程语言   时间:2014-12-15 09:07:20    阅读次数:204
编译一个很小的可执行文件
C代码: #include?<windows.h> #pragma?comment(lib,?"kernel32.lib") int?start() { ????TCHAR?message[]?=?TEXT("Taylor?Swift\r\n泰勒·斯威夫特"); ????DWORD?toWrite?=?sizeof(mess...
分类:其他好文   时间:2014-12-09 17:57:56    阅读次数:209
函数指针
一、指向普通函数的指针 要符合两点要求: 1返回类型相同 2参数类型、个数、顺序相同 实例: int Max(int a,int b){ return a>b?a:b; } int (*pFun)(int a,int b); int _tmain(int argc, _TCHAR* argv[]){...
分类:其他好文   时间:2014-12-02 22:08:41    阅读次数:168
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!