• <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 閱讀(986) 評論(0)  編輯 收藏 引用
            亚洲一区二区三区日本久久九| 日韩精品久久久肉伦网站| 很黄很污的网站久久mimi色 | 久久精品国产亚洲AV嫖农村妇女| 一个色综合久久| 久久美女人爽女人爽| 亚洲日本va午夜中文字幕久久 | 99久久这里只精品国产免费| 亚洲级αV无码毛片久久精品 | 久久精品一区二区影院| 午夜人妻久久久久久久久| 久久性生大片免费观看性| 久久久久久无码Av成人影院| 日韩十八禁一区二区久久| 久久se精品一区精品二区| 亚洲精品无码久久久久| 久久国产综合精品五月天| 久久久久四虎国产精品| 久久综合亚洲欧美成人| 久久夜色精品国产亚洲| 99久久无码一区人妻| 精品久久久久久中文字幕| 国产精品久久久久国产A级| 久久这里的只有是精品23| 国产亚州精品女人久久久久久 | 青青青国产精品国产精品久久久久 | 亚洲国产精品无码久久青草| 嫩草影院久久99| 99久久免费国产特黄| 久久无码人妻一区二区三区午夜| 久久久久国产精品麻豆AR影院| 一日本道伊人久久综合影| 欧美成人免费观看久久| 一本大道久久东京热无码AV| 亚洲国产日韩欧美久久| 一级a性色生活片久久无少妇一级婬片免费放 | 亚洲AV日韩精品久久久久久 | 亚洲αv久久久噜噜噜噜噜| 久久午夜夜伦鲁鲁片免费无码影视| 久久香蕉一级毛片| 国产成人99久久亚洲综合精品|