CFileDialog sadf(false,"*.pls",NULL,OFN_HIDEREADONLY,"所有文件(*.*)|*.*|",this);
sadf.DoModal ();

解决方案 »

  1.   

     很怪的事,出现的CFilddialog 对话框后,当我根改目录时,就报错,这是为何?
    不跟改目录时,可正常操作
      

  2.   

    停止后出现如下程序:(vs.net中)        HMODULE hmod;
            PFN_EXIT_PROCESS pfn;        hmod = GetModuleHandle("mscoree.dll");
            if (hmod != NULL) {
                pfn = (PFN_EXIT_PROCESS)GetProcAddress(hmod, "CorExitProcess");
                if (pfn != NULL) {
                    pfn(status);
                }
            }        /*
             * Either mscoree.dll isn't loaded,
             * or CorExitProcess isn't exported from mscoree.dll,
             * or CorExitProcess returned (should never happen).
             * Just call ExitProcess.
             */        ExitProcess(status);
    }