问题描述
我创建了CFileDialog对象,如下所示:
Hey Hi,
I have created CFileDialog object as follows:
CFileDialog dlg(TRUE, NULL, sNewPath, NULL, "Microsoft Excel Files (*.xls)|*.xls||");
哪里,sNewPath
是由指定文件夹中具有完整路径的第一个文件名组成的路径.
我的版本在调试以及发行版文件夹中的if(dlg.DoModal() == IDOK )
下一行崩溃.但是当我从工作空间进行调试时不是这样.
我的应用程序正在与comm端口通信,因此我使用了计时器.每当我尝试访问DoModal()
时都断开了通讯端口,但它崩溃了.
我的操作系统是Windows XP pack3.当我尝试在Windows 7上正常运行时,也是一样.
请任何人帮助我.
提前谢谢.
Sheetal.
Where,sNewPath
is path which consist of the first file name from specified folder with full path.
My version is crashing on following line, if(dlg.DoModal() == IDOK )
in debug as well as in release folder. But not while I am debugging from workspace.
My application is communicating with comm port so I have used timers. After disconnecting the comm port whenever I am trying to access DoModal()
, but it''s crashing.
My OS is Windows XP pack 3. Same thing when I have tried on Windows 7 its working properly their.
Please anybody help me.
Thanks in advance.
Sheetal.
推荐答案
这篇关于CFileDialog在调试文件夹中的DoModal()崩溃.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!