• <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年4月>
            25262728293031
            1234567
            891011121314
            15161718192021
            22232425262728
            293012345

            統(tǒng)計(jì)

            • 隨筆 - 44
            • 文章 - 0
            • 評(píng)論 - 86
            • 引用 - 0

            常用鏈接

            留言簿(6)

            隨筆分類(31)

            隨筆檔案(44)

            Mining

            最新隨筆

            搜索

            •  

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜

            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 之間存在沖突, 主要因?yàn)閂S 2005 的語(yǔ)法比VC6 & VS2003 更加嚴(yán)格, 所以一些DirectX 自帶的代碼需要更改以后才能編譯通過(guò). 本來(lái)想自己改的, 不過(guò)在網(wǎng)上發(fā)現(xiàn)了有人已經(jīng)做了這個(gè):)


            [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 泡泡牛 閱讀(2306) 評(píng)論(2)  編輯 收藏 引用 所屬分類: Develop

            評(píng)論

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

            你好,無(wú)意中搜索倒你的博客,因?yàn)閯偵习嘟佑|開發(fā)工作,什么都不懂.有個(gè)問(wèn)題想問(wèn)一下:

            我們做動(dòng)畫,用的是VS2005的環(huán)境,CLlanib庫(kù),python進(jìn)行擴(kuò)展,現(xiàn)在有個(gè)問(wèn)題是從庫(kù)里面讀取圖片顯示的時(shí)候很慢,最初用的是遞歸進(jìn)行調(diào)用,發(fā)現(xiàn)太慢了,就直接一次性讀取出來(lái)然后再顯示,發(fā)現(xiàn)還是要停頓三四秒.請(qǐng)問(wèn)有沒(méi)有什么方法可以改進(jìn)?謝謝...

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

            出問(wèn)題的應(yīng)該是ratestream.cpp,不是ratesource.cpp吧
            久久亚洲精品人成综合网| 久久精品无码一区二区三区免费| 久久久精品久久久久特色影视| 精品久久久久久久久久久久久久久| 久久这里只有精品首页| 亚洲午夜精品久久久久久app| 亚洲精品无码久久久影院相关影片| 久久99毛片免费观看不卡| 亚洲精品无码久久久久AV麻豆| 久久精品国产亚洲AV电影| 久久se精品一区精品二区国产| 久久综合给合久久狠狠狠97色 | 色偷偷88欧美精品久久久| 久久婷婷国产剧情内射白浆| 51久久夜色精品国产| 久久香综合精品久久伊人| 久久精品综合网| 国产—久久香蕉国产线看观看 | 麻豆精品久久久久久久99蜜桃 | 99久久精品免费看国产一区二区三区| 国产精品久久久久久久| 色偷偷88888欧美精品久久久| 婷婷久久精品国产| 久久久久这里只有精品 | 久久亚洲中文字幕精品有坂深雪| 久久精品国产精品亜洲毛片| 97热久久免费频精品99| 久久久无码精品亚洲日韩按摩| 精品久久人人爽天天玩人人妻| 一级做a爰片久久毛片看看| 午夜精品久久久内射近拍高清| 国产亚洲成人久久| 久久国产成人精品国产成人亚洲| 香蕉久久一区二区不卡无毒影院 | 久久人人爽人爽人人爽av| 国产成人无码精品久久久免费 | 久久精品国产一区二区三区不卡 | 欧美国产成人久久精品| 国产亚洲色婷婷久久99精品91| 久久www免费人成精品香蕉| 国产精品永久久久久久久久久|