LPCSTR中的L是什么意思?
还有VC中字符串操作函数有哪些?
DWORD和int有什么区别?false和FALSE有什么区别?
还有VC中字符串操作函数有哪些?
DWORD和int有什么区别?false和FALSE有什么区别?
解决方案 »
- MFC关于添加函数
- char tmp[20] = "123,124,125"的时候,怎样用函数取得"125"? 急急。谢谢大哥大姐!!
- 请教,如何获取系统安装目录,如:c:\winnt
- 怎么强制性杀掉指定进程?
- 谁买了《Windows防火墙与网络封包截获技术》共享源代码好吗^_^?
- 各位高手,MessageBox()可以做成让他在所有窗口之上并且其他窗口不能用(若他为关闭)
- 我应怎样学VC!!
- HTTP中的POST
- 请教各位高人:如何在ie的工具栏中添加自己的按钮?
- 当一个非模态的对话框最小化时,怎么可以让它弹现出来
- fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>???什么原回啊
- 请common_man进来领分
2、vc有一个类 CString
3、DWORD比int 在内存站的字节数多一倍
false FALSE 没区别
VC中的CString类中,有很多字符操作函数,标准C里面的函数也可以使用
DWORD为4位,int为2位,false和FALSE当然有区别拉,大小写不一样嘛,哈哈
但是L是什么意思?
还有C又是什么意思?
DWORD是32位的无符号整型,int是由符号的
false是bool型,bool型在vc++4.2之前是占4个字节的,在vc++5.0及以后版本中只占1个字节。
FALSE是BOOL型,BOOL型则是无符号32位整型
DWORD 是 unsigned long。false 和 FALSE的实际意义时一样的。
LPCTSTR A 32-bit pointer to a constant character string that is portable for Unicode and DBCS.
The TCHAR data type is a Win32 character string that can be used to describe ANSI, DBCS, or Unicode strings. For ANSI and DBCS platforms, TCHAR is defined as follows:typedef char TCHAR;
For Unicode platforms, TCHAR is defined as synonymous with the WCHAR type. Res
MAPI clients can use the TCHAR data type to represent a string of either the WCHAR or char type. Be sure to define the symbolic constant UNICODE and limit the platform where necessary. MAPI will interpret the platform information and internally translate TCHAR to the appropriate string. The MAPI property type, PT_TSTRING, works the same way as the TCHAR data type. When the platform supports Unicode, properties of type PT_TSTRING are assigned the type PT_UNICODE at compile time. When the platform does not support Unicode, these properties are assigned the type PT_STRING8.For more information on this functionality, see Character Sets and List of Property Types.