我是在WINCE 6.0下 VS开发的 代码:
BROWSEINFO bi;
ZeroMemory(&bi,sizeof(BROWSEINFO));
bi.hwndOwner = this->GetSafeHwnd();
bi.ulFlags = BIF_BROWSEINCLUDEFILES|BIF_BROWSEFORCOMPUTER ;
SHBrowseForFolder(&bi);为什么不能选择文件 CSDN上面明明有说
BIF_BROWSEINCLUDEFILES
Version 4.71. The browse dialog box will display files as well as folders.
我不使用CFileDialog的原因 是它不能限定文件夹,只能指定初始路径,可是按返回依然可以退回到系统根目录。

解决方案 »

  1.   

    1 看看返回值。
    2 You should call the InitCommonControls function before calling SHBrowseForFolder.
      

  2.   

    返回值都是正确的 path能够正确读取选择的文件夹的路径
    而且支持BIF_EDITBOX
    Version 4.71. Include an edit control in the browse dialog box that allows the user to type the name of an item.
    这个需要的版本是一样高的 所以应该不是版本问题 
    那到底是什么问题咯 谁能告诉我