locked
MF_E_INVALIDMEDIATYPE: undeclared identifier RRS feed

  • Question

  • Hi,

    I built and ran successfully the MFCaptureToFile sample from Microsoft SDK.

    When I tried to modify it and added the check hr==MF_E_INVALIDMEDIATYPE I got he following error:

    error C2065: 'MF_E_INVALIDMEDIATYPE' : undeclared identifier

     

    Do you know what is the problem?

    Thanks,

    Tomer 


    tomer belkind
    Tuesday, June 21, 2011 8:48 PM

All replies

  • You need to include mferror.h in order to get error code definitions.  The sample does not need error code definitions and does not include mferror.h.

    Thursday, July 28, 2011 11:53 PM