MSDN's bug(2): DlgDirListComboBox
来源:互联网 发布:单链表是否有环java 编辑:程序博客网 时间:2024/05/13 02:19
int DlgDirListComboBox( LPTSTR lpPathSpec, int nIDComboBox, int nIDStaticPath, UINT nFileType );
Example
// If pDialog points to a CDialog object with a combo box// with the identifier IDC_DIRBOX, this call will populate// the box with only the non-hidden subdirectories in the root// directory of the C:/ drive.pDialog->DlgDirListComboBox(_T("C://"), IDC_DIRBOX, 0, DDL_EXCLUSIVE | DDL_DIRECTORY);
would cause crash, becase
lpPathSpec
Points to a null-terminated string that contains the path or filename. DlgDirListComboBox modifies this string, which should be long enough to contain the modifications.
Correct Usage
TCHAR szPath [MAX_PATH] = _T("C://") ;
pDialog->DlgDirListComboBox(szPath, IDC_DIRBOX, 0,
DDL_EXCLUSIVE | DDL_DIRECTORY);
- MSDN's bug(2): DlgDirListComboBox
- MSDN下载“BUG”
- about MSDN's dispose()
- A bug in MSDN 2005
- A Bug's LifeA Bug's Life
- Crystal Report's BUG?
- AI2XAML's Bug
- AI2XAML's Bug(sequel)
- A Bug's Life
- this's bug
- JTable's Bug
- A Bug's Life
- poj2492_A Bug's Life
- A Bug's Life
- A Bug's Life
- A Bug's Life
- A Bug's Life
- A Bug's Life
- 心得体会:关于开发效率和项目周期的问题
- 与LDAP安全有关的基础知识(五)
- 在单片机系统上的绝对地址访问问题
- C++模版使用
- 克隆技术讲解
- MSDN's bug(2): DlgDirListComboBox
- vc6设定输入焦点
- 延迟加载D L L
- 韩国何以成为电子竞技强国
- 《财富》评论:盛大新游戏——陈天桥欲打造中国迪斯尼
- 添加表样式和列样式
- 读取远程的xml
- 图象压缩模型简介
- 可输入、自动匹配的下拉框