1.0 未申明的錯(cuò)誤解決辦法
頭文件順序不對(duì)
在項(xiàng)目中包含(1.選擇任意項(xiàng)目2.切換到屬性管理器3.點(diǎn)擊Debug/Release里的Microsoft.Cpp.Win32.user)
注意包含順序
C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses
C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\common
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include
以及l(fā)ib:
C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib
C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses\Debug
C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses\Release
2.0? error C2065: “m_pString”: 未聲明的標(biāo)識(shí)符請(qǐng)?zhí)砑尤缦麓a
#include <tchar.h>
#define PTCHAR (TCHAR *)
3.0??error C2039: 'SetDefaultDllDirectories'錯(cuò)誤解決辦法
預(yù)定義中增加一項(xiàng)定義? _USING_V110_SDK71_
4.0? 錯(cuò)誤 C2373 “_DeleteMediaTypes”: 重定義;不同的類型修飾符
錯(cuò)誤 C2373 “_FreeMediaType”: 重定義茴肥;不同的類型修飾符
注釋? mtype.h 文件中
//void WINAPI DeleteMediaType(__inout_opt AM_MEDIA_TYPE *pmt);
AM_MEDIA_TYPE * WINAPI CreateMediaType(AM_MEDIA_TYPE const *pSrc);
HRESULT WINAPI CopyMediaType(__out AM_MEDIA_TYPE *pmtTarget, const AM_MEDIA_TYPE *pmtSource);
//void WINAPI FreeMediaType(__inout AM_MEDIA_TYPE& mt);