用 VS2005 compile DirectShow BaseClasses
用 VS2005 compile DS 的 BaseClasses 時,會有很多錯誤。
第一個遇到的錯誤:
ctlutil.h(278) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
找到:
COARefTime(LONG);
operator=(LONG);
改成:
COARefTime &operator=(LONG);
另個錯誤:
.\wxdebug.cpp(567) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
找到:
static g_dwLastRefresh = 0;
改成:
static DWORD g_dwLastRefresh = 0;
錯誤:
.\winutil.cpp(2104) : error C2065: 'Count' : undeclared identifier
找到:
for (Count = 0;Count < Result;Count++) {
改成:
for (UINT Count = 0;Count < Result;Count++) {
錯誤:
.\winutil.cpp(2123) : error C2065: 'Count' : undeclared identifier
找到:
for (Count = PalLoCount;INT(Count) < min(PalHiStart,iColours);Count++) {
改成:
for (UINT Count = PalLoCount;INT(Count) < min(PalHiStart,iColours);Count++) {
錯誤:
.\outputq.cpp(664) : error C2065: 'iDone' : undeclared identifier
找到:
*nSamplesProcessed = iDone - iLost;
iDone 未定義,再往前找:
for (long iDone = 0;
改成:
long iDone = 0;
for (long iDone = 0;
第一個遇到的錯誤:
ctlutil.h(278) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
找到:
COARefTime(LONG);
operator=(LONG);
改成:
COARefTime &operator=(LONG);
另個錯誤:
.\wxdebug.cpp(567) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
找到:
static g_dwLastRefresh = 0;
改成:
static DWORD g_dwLastRefresh = 0;
錯誤:
.\winutil.cpp(2104) : error C2065: 'Count' : undeclared identifier
找到:
for (Count = 0;Count < Result;Count++) {
改成:
for (UINT Count = 0;Count < Result;Count++) {
錯誤:
.\winutil.cpp(2123) : error C2065: 'Count' : undeclared identifier
找到:
for (Count = PalLoCount;INT(Count) < min(PalHiStart,iColours);Count++) {
改成:
for (UINT Count = PalLoCount;INT(Count) < min(PalHiStart,iColours);Count++) {
錯誤:
.\outputq.cpp(664) : error C2065: 'iDone' : undeclared identifier
找到:
*nSamplesProcessed = iDone - iLost;
iDone 未定義,再往前找:
for (long iDone = 0;
改成:
long iDone = 0;
for (long iDone = 0;
留言
張貼留言