# About Microsoft Media Foundation On Vista

This topic is 1580 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Im looking into movie Play back in my directx 10 app for cut scenes.

I had to down load the windows dsk 7.  As Windows SDK 7.1 does not work and the fixes on the net do nothing to fix it I think its vista.

but none of the windows 7.0 sample code for media foundation run I get errors like this here.

 error C2146: syntax error : missing ';' before identifier 'hdr'
1>c:\program files\microsoft sdks\windows\v6.0a\include\prsht.h(666) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\prsht.h(666) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\windows.h(238) : warning C4193: #pragma warning(pop) : no matching '#pragma warning(push)'
1>c:\program files\microsoft sdks\windows\v7.0\include\evr.h(1302) : error C2061: syntax error : identifier 'IMFTransform'


they point to the core file the headers like this head here

this is in prsht.h its like the headers have errors what they dont debug there stuff now ???????.

typedef

struct _PSHNOTIFY

{

NMHDR hdr;

LPARAM lParam;

} PSHNOTIFY, *LPPSHNOTIFY;

its saying there is errors here

typedef

/* [v1_enum] */

enum

{ MF_SOURCE_READERF_ERROR = 0x1,

typedef

/* [v1_enum] */

enum

{ MF_SOURCE_READER_CONTROLF_DRAIN = 0x1

this is in mfreadwrite.h

do I have to use Direct Show them samples sort of work..

I would like to use media foundion.

##### Share on other sites

It looks like you have two SDKs mixed into one module.

You could check the configuration of platforms.

Is it the Visual C++ 2008? Then you should manually assign the correct version in registry (switching does not work).

Edited by kubera

##### Share on other sites

Are you Talking about haveing the DirectX SDK 8 + DirectX SDK 9, and windows SDK 7.0 because I do.

I don't need the 8 but for the samples and 9 im using dx10.

I'm 5 years into a project with vc8 and dont seem to think its wise to change to a new compiler

or are you talking about in vc c++ 8 haveing included and linked the directx9 and windows sdk.

Do I need the windows SDK on my system. I have the August 2009.

Is it the Visual C++ 2008? Then you should manually assign the correct version in registry (switching does not work).

Please go into more detail on this answer.

##### Share on other sites

I think I have the wrong SDK I think this is what I should be using.

Microsoft® Windows® Software Development Kit Update for Windows Vista

1. 1
2. 2
Rutin
21
3. 3
4. 4
frob
17
5. 5

• 9
• 12
• 9
• 33
• 13
• ### Forum Statistics

• Total Topics
632591
• Total Posts
3007250

×