Where is DeleteMediaType() defined?

782 Views Asked by At

When implementing the example from http://msdn.microsoft.com/en-us/library/windows/desktop/dd387907%28v=vs.85%29.aspx I have a problem with DeleteMediaType() and VisualStudio 2010: this function is not defined. I found a header Mtype.h should declare it but that does not exist for VS2010. Shouldn't all the headers and libraries be there without installing some additional SDKs?

Where is DeleteMediaType() defined?

1

There are 1 best solutions below

2
On

In Windows SDK \Samples\multimedia\directshow\baseclasses\mtype.* files. You are normally supposed to include .h and link strmbas?.lib to make it available to you, but you don't have to: you might prefer to either include this into project directly, or duplicate the function (it's simple and wraps a couple of CoTaskMemFree calls).