首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

请教 CComBox:GetLBText该怎么使用啊

2012-02-08 
请问 CComBox::GetLBText该如何使用啊?能举个例子吗?怎么用GetLBText得到ComboBox里面的字符串?还有请问LP

请问 CComBox::GetLBText该如何使用啊?
能举个例子吗?   怎么用GetLBText得到ComboBox里面的字符串?
  还有请问   LPTSTR   和   LPCTSTR   这些是什么类型?

[解决办法]
LPTSTR An LPWSTR if UNICODE is defined, an LPSTR otherwise.
This type is declared in WinNT.h as follows:


#ifdef UNICODE
typedef LPWSTR LPTSTR;
#else
typedef LPSTR LPTSTR;
#endif

===============
LPCTSTR An LPCWSTR if UNICODE is defined, an LPCSTR otherwise.
This type is declared in WinNT.h as follows:


#ifdef UNICODE
typedef LPCWSTR LPCTSTR;
#else
typedef LPCSTR LPCTSTR;
#endif

热点排行