• <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>
            <2007年8月>
            2930311234
            567891011
            12131415161718
            19202122232425
            2627282930311
            2345678

            統計

            • 隨筆 - 44
            • 文章 - 0
            • 評論 - 86
            • 引用 - 0

            常用鏈接

            留言簿(6)

            隨筆分類(31)

            隨筆檔案(44)

            Mining

            最新隨筆

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            Some DirectShow Samples Break in Visual Studio 2005

            zt: http://blogs.msdn.com/mikewasson/archive/2005/05/23/some-directshow-samples-break-in-visual-studio-2005.aspx

            DirectX 9.0 與 VS 2005 之間存在沖突, 主要因為VS 2005 的語法比VC6 & VS2003 更加嚴格, 所以一些DirectX 自帶的代碼需要更改以后才能編譯通過. 本來想自己改的, 不過在網上發現了有人已經做了這個:)


            [Note: This post applies to the Platform SDK for Windows Server 2003 SP1 and Server 2003 R2. These issues were fixed in the Windows SDK for Vista.]  

            Some of the DirectShow samples break if you install Visual Studio 2005 Beta 2. Most of the errors that I found fall into three categories:

            • C4430: Missing type specifier. To conform with C++, undeclared types do not default to int. All types must be declared. Fix: Declare the type, or suppress the warning with the "/wd4430" flag.
            • C4996: ' xxxx' was declared deprecated. You may be including an older version of strsafe.h from the DirectX SDK or the Platform SDK. You should include the version installed with Visual Studio. (But it's probably harmless to ignore this warning.) 
            • C2065: 'xxx': undeclared identifier. To conform with C++, the scope of a variable declared inside a "for" loop is restricted to the loop. Fixes: (a) Move the declaration outside the for loop. (b) Redeclare the variable in multiple scopes, if you don't need it to persist outside the loop. (c) Set the /Zc:forScope flag. (You can find this under Project, Properties, Configuration Properties, C/C++, Language, Force Conformance In For Loop Scope. Set to "No".)

            Here are the specific fixes that I made. Warning: I have not thoroughly tested these, and I only tried them under the "Windows XP 32-bit Debug" environment in Platform SDK. You should use your own judgment before making any of these fixes.

            • BaseClasses\ctlutil.h (278)  
                  (LONG) operator=(LONG);
            • BaseClasses\wxdebug.cpp (564)
                  static DWORD g_dwLastRefresh = 0;
            • BaseClasses\winutil.cpp (2092)
                 UINT Count;
                 for (Count = 0;Count < Result;Count++) {
            •  BaseClasses\outputq.cpp (635)
                 long iDone = 0;
                 for (iDone = 0;
            • Capture\AmCap\amcap.cpp (691)
                  for(int i = 0; i < NUMELMS(gcap.rgpmAudioMenu); i++)
            • Capture\AmCap\amcap (2795)
                  for(int i = 0; i < NUMELMS(gcap.rgpmAudioMenu); i++)
            • DMODemo\dsutil.cpp (686)
                  DWORD i = 0;
                  for( i=0; i<m_dwNumBuffers; i++ )
            • dmoimpl.h (622)   [In the Platform SDK headers]
                  for (DWORD dw = 0; dw < NUMBEROFOUTPUTS; dw++) {
            • DMO\GargleDMO\MedParamBase\param.cpp (91)
                  for (DWORD dwIndex = 0; dwIndex < cParams; dwIndex++)
            • DMO\GargleDMO\MedParamBase\param.cpp (309)
                  CCurveItem *pCurve = NULL;
                  for (pCurve = pCurveHead;
            • DMO\GargleDMO\gargle.cpp (145)
                  for (DWORD i = 0; i < cOutputStreams && SUCCEEDED(hr); ++i)
            • Filters\Dump\dump.cpp (426)
                  for (int Loop = 0;Loop < (DataLength % BYTES_PER_LINE);Loop++)
            • Filters\Gargle\gargle.cpp (212)
                  static int m_nInstanceCount; // total instances
            • Filters\RGBFilters\RateSource\ratesource.cpp (382)
                  for( int y = 0 ; y < DEFAULT_HEIGHT ; y++ )
            • Filters\RGBFilters\RateSource\ratesource.cpp (387)
                  for( int y = 0 ; y < DEFAULT_WIDTH ; y++ )
            • VMR\VMRXclBasic and VMR\Ticker: LNK1181: cannot open input file 'dxguid.lib'. This was an error in the makefile. Change to read:
                  DXLIB="$(DXSDK_DIR)\Lib\x86"  (currently says "x32")
            • VMR\VMRXcl and VMR\VMRMulti: C1083: Cannot open include file: 'd3dxmath.h': No such file or directory. This is an old DX header that is no longer included in DX or in Visual Studio. Unfortunately the only fix is to download an older version of the DirectX SDK.
            • VMR9\MultiVMR9\GamePlayer\character.cpp (383)
                  DWORD i = 0;
                  for (i = 0; i < pMeshContainer->NumInfl; ++i)
            • VMR9\MultiVMR9\DLL\MixerControl.h (28)
                  static const DWORD MultiVMR9Mixer_DefaultFVF = D3DFVF_XYZ | D3DFVF_DIFFUSE | D3DFVF_TEX1;
            • VMR9\VMRAllocator: error LNK2019: unresolved external symbol "wchar_t * __stdcall _com_util::ConvertStringToBSTR(char const *)" (etc).  Add this to the makefile:
                  LINK32_LIBS = \
                  comsuppw.lib \
                  shell32.lib \

             

            posted on 2007-06-26 11:07 泡泡牛 閱讀(2295) 評論(2)  編輯 收藏 引用 所屬分類: Develop

            評論

            # re: Some DirectShow Samples Break in Visual Studio 2005 2007-06-30 14:15 小皮

            你好,無意中搜索倒你的博客,因為剛上班接觸開發工作,什么都不懂.有個問題想問一下:

            我們做動畫,用的是VS2005的環境,CLlanib庫,python進行擴展,現在有個問題是從庫里面讀取圖片顯示的時候很慢,最初用的是遞歸進行調用,發現太慢了,就直接一次性讀取出來然后再顯示,發現還是要停頓三四秒.請問有沒有什么方法可以改進?謝謝...
              回復  更多評論    

            # re: Some DirectShow Samples Break in Visual Studio 2005 2008-02-21 17:51 chqsh

            出問題的應該是ratestream.cpp,不是ratesource.cpp吧
              回復  更多評論    
            久久国产视屏| 国产精品久久久久无码av| 无码任你躁久久久久久久| 无码任你躁久久久久久老妇App| 久久人与动人物a级毛片| 精品国产乱码久久久久久1区2区 | 青青草原综合久久| 国内精品伊人久久久久影院对白| 欧美日韩精品久久久久| 9久久9久久精品| 久久夜色精品国产亚洲| aaa级精品久久久国产片| 亚洲AⅤ优女AV综合久久久| av午夜福利一片免费看久久| 色综合久久久久综合99| 久久综合综合久久97色| 亚洲精品tv久久久久久久久| 精品久久国产一区二区三区香蕉 | 久久久久亚洲精品天堂| 国内精品欧美久久精品| 99久久人妻无码精品系列蜜桃| 一本色道久久88综合日韩精品| 国产69精品久久久久99尤物| 色综合久久久久无码专区| 狠狠色噜噜色狠狠狠综合久久| 久久精品国产72国产精福利| 青青青国产精品国产精品久久久久| 中文字幕乱码久久午夜| 久久精品免费一区二区| 热99RE久久精品这里都是精品免费| 91亚洲国产成人久久精品| 久久天堂电影网| 久久久久久久99精品免费观看| 国产精品美女久久久m| 77777亚洲午夜久久多喷| 精品熟女少妇av免费久久| AAA级久久久精品无码片| 久久精品这里热有精品| 91久久精品国产91性色也| 久久精品国产一区二区电影| 久久99精品久久久久久不卡 |