几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】problem when opening a file (http://www.dimcax.com/hust/showthread.php?t=18084)

yang686526 2009-05-06 11:05 PM

【转帖】problem when opening a file
 
problem when opening a file
problem when opening a file
hi,
warning message comes up when i open a file in my program. the message says "do you want to proceed?". then i click 'yes' and then the program is closed automatically.
so i tested this file in singledoc and odamfcapp.
singledoc has the same problem but odamfcapp is going on, not smoothly though. odamfcapp has also a warning message - "acdbviewporttablerecord(2a): tilemode viewport corners ... do you want to proceed?" and click 'yes' then the file is opened.
i want to know how different those two programs are.
i don't want my program to be closed automatically.
expecting answer soon.
thanks!
hafa
attached files
try to change csingledocapp::warning like this:
code:
void csingledocapp::warning(const odstring& smsgin)
{
if (messagebox(null, smsgin + _t("\n\ndo you want to proceed ?"), _t("warning!"), mb_iconwarning|mb_yesno)==idno)
throw userbreak();
}
vladimir
it works wonderfully!
thank vladimir.
it works!
thank you for your help!
hafa


所有的时间均为北京时间。 现在的时间是 11:56 PM.