查看单个帖子
旧 2009-05-06, 11:05 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)