• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            還沒想好
            還沒想好
            posts - 4,comments - 6,trackbacks - 0
            記錄從VC6 到 VC8遇到的問題和解決辦法
            1) msvcr80d.dll 找不到
             1)) manifest WIN32 set Yes, 2)) ignore msvcrt.lib
             /*
             

            Hi there,

            I read every post in this thread without any help in my case.

            The problem turned out: The DEBUG version was trying to link with BOTH msvcr80.dll and msvcr80d.dll.

            Check if this is the case for you using the "dependency walker" on your executable. If these two are both loaded, then you got the same problem as I did.

            The solution is to set "Properties->Linker->Input->Ignore Specific library" to "msvcrt.lib".

             

            More details below:

            I was compiling and running a program that uses opencv library. One of the libraries in opencv (highgui to be exact) was linking with non-debug versions of some graphics libraries even in its debug version. Apparently this was OK before. 

            This resulted in my debug version program linking with both msvcr80.dll and msvcr80d.dll. It appears this is a problem since the manifest only mentions one of these libraries and the other one (msvcr80.dll) appears not to be found causing the error mentioned in this thread. Why no-one in this thread mentioned that this could be the case is beyond me. I found out about this using "dependency walker" on the .exe that I compile and/or the highgui100d.dll that I load from the library.

            That is the reason the complaint is about msvcr80.dll and not msvcr80d.dll in VS8!!!

            The fix is to re-compile highgui100d.dll (debug version) with Properties->Linker->Input->Ignore Specific library set to singly "msvcrt.dll".

            Just wanted to add this so other people do not waste time as I did...

            Hakan

            */

            2) MFC 
             MFC 從VC6到V8變動很大,
            // VC8
            LRESULT CDialogBar::HandleInitDialog(WPARAM, LPARAM)
            {
             Default();  // allow default to initialize first (common dialogs/etc)

             // create OLE controls
             COccManager* pOccManager = afxOccManager;
             if ((pOccManager != NULL) && (m_pOccDialogInfo != NULL))
             {
              if (!pOccManager->CreateDlgControls(this, m_lpszTemplateName,
               m_pOccDialogInfo))
              {
               TRACE(traceAppMsg, 0, "Warning: CreateDlgControls failed during dialog bar init.\n");
               return FALSE;
              }
             }

             return FALSE;
            }

            //VC6
            LRESULT CDialogBar::HandleInitDialog(WPARAM, LPARAM)
            {
             Default();  // allow default to initialize first (common dialogs/etc)

             // create OLE controls
             COccManager* pOccManager = afxOccManager;
             if ((pOccManager != NULL) && (m_pOccDialogInfo != NULL))
             {
              if (!pOccManager->CreateDlgControls(this, m_lpszTemplateName,
               m_pOccDialogInfo))
              {
               TRACE0("Warning: CreateDlgControls failed during dialog bar init.\n");
               return FALSE;
              }
             }

             return TRUE;
            }

            竟然有這么大的區別,同時看不懂VC8為什么要那么作

            posted on 2008-03-15 02:57 MDnullWHO 閱讀(974) 評論(0)  編輯 收藏 引用
            久久久精品午夜免费不卡| 亚洲日本久久久午夜精品| 欧美亚洲国产精品久久蜜芽| 国产午夜精品理论片久久影视| 久久国产影院| 国内精品久久久久久久久电影网| 国产欧美一区二区久久| 久久综合九色欧美综合狠狠| 久久天天躁狠狠躁夜夜avapp| 91性高湖久久久久| 久久综合香蕉国产蜜臀AV| 国产精品综合久久第一页| 亚洲国产欧洲综合997久久| 国产精品美女久久久m| 久久本道久久综合伊人| 国产精品无码久久久久久| 久久香综合精品久久伊人| 久久精品无码av| 欧美激情精品久久久久| 精品国产乱码久久久久久郑州公司 | 69国产成人综合久久精品| 亚州日韩精品专区久久久| 狠狠精品干练久久久无码中文字幕| 91精品国产91久久久久福利| 久久久精品国产免大香伊| 久久久久国色AV免费观看| 国产激情久久久久影院老熟女| 国内精品伊人久久久久| 国产精品久久久久久影院| 久久婷婷五月综合色高清| 久久综合狠狠综合久久综合88| 一极黄色视频久久网站| 国产精品久久久久久久app| 久久久久无码专区亚洲av| 国产精自产拍久久久久久蜜| 999久久久国产精品| 国产一区二区精品久久岳| 久久久网中文字幕| 伊人 久久 精品| 亚洲国产精品无码久久久蜜芽| 伊人色综合久久天天人手人婷|