BSTR bstrName;// 赋值
pField->get_Name(&bstrName);_bstr_t tmpbstr(bstrName, FALSE); //necessary to avoid a memory leak
CString str = (const char*)(tmpbstr);别忘了给分!

解决方案 »

  1.   

    非常抱歉,打开的窗口太多,上面的帖子回错地方了.
    你要的东西在这里:
    http://www.codeguru.com/treeview/DirTreeCtrl.htm
      

  2.   

    用这个函数
    UINT GetWindowsDirectory(
      LPTSTR lpBuffer,  // address of buffer for Windows directory
      UINT uSize        // size of directory buffer
    );譬如char m[50];
     GetWindowsDirectory(m,50);
    就可以了
      

  3.   

    多谢prog_st(st) ,我的Email:  [email protected]