zoukankan      html  css  js  c++  java
  • 异常查看部分代码

    try
    {
    ........................
    }
    catch(_com_error
    &e)
    {   
      CString strErrDescribe;
      strErrDescribe.Format("Exception thrown
    for classes generated by #import"
                "\tCode
    =%81x\n"
                "\tCode meaning
    =%s\n"
                "\tSource
    =%s\n"
                "\tDescription
    =%s\n",
                e.Error(),
                e.ErrorMessage(),
                (LPCTSTR)(e.Source()),
                (LPCTSTR)(e.Description()));
            TRACE("
    %%s\r\n", (LPCTSTR)e.Source(),(LPCSTR)e.Description());
           
           
    char sLog[1024]= {0};
            sprintf(sLog, "
    %%s %s",  e.ErrorMessage(),(LPCTSTR)e.Source(), (LPCSTR)e.Description());
    ............
    }
    catch(...)
    {
    .......
    }

  • 相关阅读:
    20150607-0608
    20150423
    感触
    NSString里面的数字
    Git使用相关
    状态栏的设置
    UI相关问题
    分栏(标签)控制器
    导航控制器
    NSAttributedString 属性
  • 原文地址:https://www.cnblogs.com/jzxx/p/2670466.html
Copyright © 2011-2022 走看看