Compiling DirectShow source code from MS Press: missing mmstream.h

jmfaur

Compiling DirectShow source code from MS Press: missing mmstream.h

by jmfaur » Thu, 16 Apr 2009 11:56:54

I've VC6++ and VS8 installed on my PC for several Digital Vieo projects.

I'm reading Programming Microsoft DirectSow for Digital Video and Television (by Mark Pesce; MS Press) and just want to compile the DSRender example in VS8 (sure I could do in VC6, but I want to start with VS8).

The examples have been done for VC7.

The comiplation error is:

DSRender.h(22) : fatal error C1083: Cannot open include file: 'mmstream.h': No such file or directory

So I searched for mmstream.h and found it in VC98\Include (in core VC6++) but not VS8 or SDKs...

How can I compile such projects in VS8

 

 



Jonathan Caves MSF

Compiling DirectShow source code from MS Press: missing mmstream.h

by Jonathan Caves MSF » Sat, 18 Apr 2009 12:57:55

What version of Visual C++ 8.0 do you have If it is the Express Edition then it does not come with the Platform SDK or the DirectX SDK - you need to download these from MSDN:

http://msdn.microsoft.com/directx/sdk/



jmfaur

Compiling DirectShow source code from MS Press: missing mmstream.h

by jmfaur » Sun, 19 Apr 2009 14:59:57

I'm using VS2005 Pro, latest Windows Server 2003 R2 Platform SDK, latest DXSDK (and lot of older ones).

But I didn't have the Feb 2005 extras, so I downloaded it but it seems to be the same theyr're in the Server 2003 R2 Platform SDK.

I found that the Pesce's samples are old, for VS2002 and the new samples from Server 2003 R2 Platform SDK are also for VS2002 so i'm "just" facing a VS migration issue.

So I made progress be removing hard coded path in Pesce code, but then too many errors so I gave up and try to compile Server 2003 R2 Platform SDK sample code (PlayDVD for a start) and a lot of errors as well.

Therefore it will be a lot of work to make any of these Dshow sample to work with VS2005, while I was just willing to illustrate my Pesce's book reading (before starting my own project).

So I will work on this next week, fisrt make Pesce examples working and then making Platform SDK ones working as well. If you've any clue to make me save time then, I'd appreciate.



Alex Farbe

Compiling DirectShow source code from MS Press: missing mmstream.h

by Alex Farbe » Mon, 20 Apr 2009 13:58:56

fransoosk

Compiling DirectShow source code from MS Press: missing mmstream.h

by fransoosk » Tue, 21 Apr 2009 16:00:58

Hello

For those among you who are still struggling with this problem at this time:

-download DirectX SDK (newest is October 2006)

-download Platform SDK (newest is Platform SDK for Windows Server 2003 R2)

-Add these two includes to the C/C++ include path (first the platform, then the directx)

-Add "c:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\Strmiids.lib" to your linker dependencies

Fransooske


Steve Cron

Compiling DirectShow source code from MS Press: missing mmstream.h

by Steve Cron » Thu, 23 Apr 2009 17:01:59

Hello,

I am also struggling to get these examples to compile using VS 2005, I have my system setup as described, but I get the error

fatal error C1189:#error : Need to include strsafe.h after tchar.h

Do you have any ideas on why I am getting this error, and what I need to do to resolve it

Many Thanks

Steve