![]() |
【转帖】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. |