locked
error C2065: 'IMFTranscodeProfile' : undeclared identifier RRS feed

Answers

  • Thanks.

    Typically, in a Unicode build the symbols UNICODE and _UNICODE are defined.  Actually, looking again it appears that it isn't a Unicode issue.  MFShutdown is defined in Mfplat.lib so make sure that is an Input library in your linker options and you are pointing to the correct version of the Windows SDK you are using (make sure you also rebuilt the entire solution after installing the new Windows SDK).

     


    Please use Vote As Helpful (green up arrow at top-left of posts) and Mark As Answer where appropriate.
    My dshow site is http://tmhare.mvps.org.
    Tuesday, July 20, 2010 8:38 PM

All replies

  • On Tue, 20 Jul 2010 17:02:58 +0000, 2ouger wrote:

    I'm getting this error :error C2065: 'IMFTranscodeProfile' : undeclared identifier.

    What version of the Windows SDK are you using? (IIRC, the minimum required is V7.0)

    Did you make sure that your Visual Studio settings have the latest
    version of the Windows SDK include and libraries?


    Please use Vote As Helpful (green up arrow at top-left of posts) and Mark As Answer where appropriate.
    My dshow site is http://tmhare.mvps.org.
    Tuesday, July 20, 2010 5:18 PM
  • Development: VS2008 3.5 SP1.
    OS: Windows 7

    Libaries? I figured if I included the header file, that would automatically call upon the libary. Now where would the libaray be located assuming everything is installed with default settings? And thanks for the quick reply.

    Tuesday, July 20, 2010 5:43 PM
  • The Windows SDK is a separate download.   For example, it will be installed in:

      C:\Program Files\Microsoft SDKs\Windows\v7.0  [ the minimum version you need for this interface, replace with the version you have ]

    You need to make sure that these are set either in your project or globally in Visual Studio (IIRC, the latter is an option upon the completion of the SDK install).  For v7.0:

       Include files:  C:\Program Files\Microsoft SDKs\Windows\v7.0\Include

       Libraries:  C:\Program Files\Microsoft SDKs\Windows\v7.0\Lib

    As of this post, the latest Windows SDK is 7.1:

       http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=6b6c21d2-2006-4afa-9702-529fa782d63b

     

     


    Please use Vote As Helpful (green up arrow at top-left of posts) and Mark As Answer where appropriate.
    My dshow site is http://tmhare.mvps.org.
    Tuesday, July 20, 2010 6:00 PM
  • Ok I see that the latest SDK i had was 6, just downloaded 7.1. Now as far as "include file" and "include libraries", those are located in project properties->Linker->General->Additional Library Directories, is that correct? how about the include file?
    Tuesday, July 20, 2010 6:19 PM
  • Now as far as "include file" and "include libraries", those are located in project properties->Linker->General->Additional Library Directories, is that correct? how about the include file?

    Correct.  Include is the same except "C/C++" instead of "Linker"
    above.


    Please use Vote As Helpful (green up arrow at top-left of posts) and Mark As Answer where appropriate.
    My dshow site is http://tmhare.mvps.org.
    Tuesday, July 20, 2010 6:24 PM
  • Excellent thanks got it. Now another issue's come up, sorry. But i get this LINK1120 error. 

    first link error is

    error LNK2019: unresolved external symbol _MFShutdown@0 referenced in function "long __cdecl Transcode(wchar_t const *,wchar_t const *,__int64,__int64)" (?Transcode@@YAJPB_W0_J1@Z)

    Am i linking it correctly?

    Tuesday, July 20, 2010 6:30 PM
  • Try changing the "Treat wchar_t as built-in type" setting in your project's settings (under C/C++ -> Language, IIRC), and then rebuild the entire project.  Otherwise, it is probably a Unicode / MBCS mismatch.

    BTW, are none of my posts so far Helpful or did you miss this request in my signature: "Please use Vote As Helpful (green up arrow at top-left of posts) " :)


    Please use Vote As Helpful (green up arrow at top-left of posts) and Mark As Answer where appropriate.
    My dshow site is http://tmhare.mvps.org.
    Tuesday, July 20, 2010 6:43 PM
  • Sorry about that. Um how would you resolve the Unicode/mbcs mismatch? Seems like its not the first issue (Treat wchar_........).
    Tuesday, July 20, 2010 6:53 PM
  • Thanks.

    Typically, in a Unicode build the symbols UNICODE and _UNICODE are defined.  Actually, looking again it appears that it isn't a Unicode issue.  MFShutdown is defined in Mfplat.lib so make sure that is an Input library in your linker options and you are pointing to the correct version of the Windows SDK you are using (make sure you also rebuilt the entire solution after installing the new Windows SDK).

     


    Please use Vote As Helpful (green up arrow at top-left of posts) and Mark As Answer where appropriate.
    My dshow site is http://tmhare.mvps.org.
    Tuesday, July 20, 2010 8:38 PM