streams.h和streams.lib 问题+DirectShow SDK问题

最近 要搞什么视频聊天,需要DirectShow SDK..

AVchat 有个这样的实例,跑起来说需要streams.h和streams.lib。

DirectShowSDK可以到这里下载http://www.microsoft.com/downloads/details.aspx?FamilyId=8AF0AFA9-1383-44B4-BC8B-7D6315212323&displaylang=en

至于streams.h和streams.lib 是放在 DirectShow SDK\Samples\C++\DirectShow\BaseClasses

编译下就可以了

问题麻烦就是 VS2008 编译不通:

错误如下:

error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

.\winutil.cpp(2104) : error C2065: 'Count' : undeclared identifier

请修改winutil.cpp:

ctlutil.h

operator=(LONG);

改为

COARefTime& operator=(LONG);

for (Count = PalLoCount;INT(Count) < min(PalHiStart,iColours);Count++) {

改为

for (int Count = PalLoCount;INT(Count) < min(PalHiStart,iColours);Count++) {"

添加:

long iDone = 0;
for (iDone = 0;
iDone < nSamples || (m_nBatched != 0 && m_bSendAnyway);

你可能感兴趣的:(C++,c,Microsoft,C#)