怎样把系统自动弹出的MESSAGE BOX屏蔽掉,大家说说.比如说,用CopyFile()COPY文件的时候,把软盘拔出,这时系统会弹出一个MESSAGE BOX,怎样屏蔽掉它.

解决方案 »

  1.   

    The SetErrorMode function controls whether the system will handle the specified types of serious errors, or whether the process will handle them.
    UINT SetErrorMode(
      UINT uMode
    );
      

  2.   

    The SetErrorMode function controls whether the system will handle the specified types of serious errors, or whether the process will handle them.
    UINT SetErrorMode(
      UINT uMode
    );
      

  3.   

    请问楼上SetErrorMode主要用在什么场合,我在程序里使用后,如果程序出错,还是会弹出对话框
      

  4.   

    在问楼上 masterz() ,我使用SetErrorMode(),将SetErrormode的所有参数都加上,这时不会出现程序错误的对话框,但程序退出,MSDN中说把错误消息发给了当前进程,但不知道如何捕获这些错误消息,如果能解决,我另外开贴送分
      

  5.   

    API hook 从写一下MessageBox函数
      

  6.   

    API HOOK 我见过一个类似的程序
      

  7.   

    MSDN中说把错误消息发给了当前进程,但不知道如何捕获这些错误消息:
    GetLastError
      

  8.   

    MSDN中说把错误消息发给了当前进程,但不知道如何捕获这些错误消息:
    GetLastError
      

  9.   

    masterz()刚才看见一个要让五星的人去解决的帖子!!!!
      

  10.   

    如果弹处的是错误信息,可以用如下方法
    try(...){
    } catch(){
    }
      

  11.   

    比如说,用CopyFile()COPY文件的时候,把软盘拔出,这时系统会弹出一个MESSAGE BOX,怎样屏蔽掉它.具体可以吗?谢谢.
      

  12.   

    try {
    CopyFile(_T("D:\\application\\info.txt"), _T("a:\\aa.txt"), true);
    } catch(...) {
    }