VC初学者的一些问题!

badboy888888882002 2003-07-11 01:40:45
LPCSTR中的L是什么意思?
还有VC中字符串操作函数有哪些?
DWORD和int有什么区别?false和FALSE有什么区别?
...全文
70 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
zerphy 2003-07-11
  • 打赏
  • 举报
回复
false FALSE有区别吧
bjzhaoxiao 2003-07-11
  • 打赏
  • 举报
回复
TCHAR
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.

Remarks
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.


doulikeme 2003-07-11
  • 打赏
  • 举报
回复
LPCSTR: a Long(32-bit) Pointer to A Constant character STRing
DWORD 是 unsigned long。false 和 FALSE的实际意义时一样的。
LPCTSTR A 32-bit pointer to a constant character string that is portable for Unicode and DBCS.

LaoLi_SC_008 2003-07-11
  • 打赏
  • 举报
回复
L应该是long的意思,也就是32位。
DWORD是32位的无符号整型,int是由符号的
false是bool型,bool型在vc++4.2之前是占4个字节的,在vc++5.0及以后版本中只占1个字节。
FALSE是BOOL型,BOOL型则是无符号32位整型
badboy888888882002 2003-07-11
  • 打赏
  • 举报
回复
还有LPCTSTR中的T呢?
laserzxq 2003-07-11
  • 打赏
  • 举报
回复
DWORD - unsigned long
laserzxq 2003-07-11
  • 打赏
  • 举报
回复
C-constant
laserzxq 2003-07-11
  • 打赏
  • 举报
回复
L-long
badboy888888882002 2003-07-11
  • 打赏
  • 举报
回复
P是point的意思
但是L是什么意思?
还有C又是什么意思?
mfc168 2003-07-11
  • 打赏
  • 举报
回复
LPCSTR是一种数据类型,一般LP表示指针的意思
VC中的CString类中,有很多字符操作函数,标准C里面的函数也可以使用
DWORD为4位,int为2位,false和FALSE当然有区别拉,大小写不一样嘛,哈哈
HanZhu1 2003-07-11
  • 打赏
  • 举报
回复
1、应该是指针
2、vc有一个类 CString
3、DWORD比int 在内存站的字节数多一倍
false FALSE 没区别

16,551

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Creator Browser
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧