views:

343

answers:

2

I am a newbie to DirectX SDK, Platfrom SDK and DirectShow. I downloaded latest Platform SDK and DirectX SDK August'09. I tried to build sample project in folder:

Microsoft Platform SDK\Samples\Multimedia\DirectShow\Capture\PlayCap\  

And had following building errors:

LINK : fatal error LNK1181: cannot open input file 'D:\Program Files\
Microsoft Platform SDK\samples\multimedia\directshow\baseclasses\
WIN2000_DEBUG\strmbasd.lib'

As far, as I understand, I need to build all sources in "Microsoft Platform SDK\Samples\Multimedia\DirectShow\BaseClasses\" directory to get necessary lib.
I tried nmake in that dir and got following:

D:\Program Files\Microsoft Platform SDK\Samples\Multimedia\DirectShow\
BaseClasses\ctlutil.h(278) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int.

Here is code on that lines:

278: STDMETHODIMP
279: CMediaEvent::NonDelegatingQueryInterface(REFIID riid, void **ppv)

What I do wrong? Just can't believe, that using Microsoft's libraries must be so hard.

A: 

Try this thread: http://social.msdn.microsoft.com/forums/en-US/vclanguage/thread/7e02f2ae-1e82-4d3a-852a-8f4917a016b2

George Edison
Sorry, that was the wrong link. Did you try checking the lib and include paths?
George Edison
Here: http://powerrender.com/forum/viewtopic.php?t=1821
George Edison
Here: http://powerrender.com/forums/viewtopic.php?t=1821
George Edison
Here: http://powerrender.com/forums/viewtopic.php?t=1821
George Edison
Sorry, my browser is malfunctioning...
George Edison
A: 

Microsoft has renamed Platfrom SDK to Windows SDK. The lastest Windows SDK is Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1.

Windows SDK for Windows 7 has Visual Studio 2008 2005 project files for all DirectShow projects.

Cristian Adam
I have VS2005 on my XP. Too much work to try your advice.
I just had another look, the project files are for Visual Studio 2005.
Cristian Adam