c++ - Camera media source with media foundation - MS Sample code doesn't compile with Visual Studio 2013 -


i tried compiling this sample code visual studio 2013 win64 (on windows 8.1). included mfapi.h , mfidl.h. gets compilation errors identifiers not found example:

mf_devsource_attribute_source_type mfenumdevicesources

i googled, , saw mention of these features being windows 7+ specific , of vs "platform toolset" property required enable them - property doesn't seem exist in vs 2013.

any suggestions?

you have make c++ project win32 project, not store app project type. if @ mfidl.h there compile flag disables media foundation devsource attributes when not desktop application, i.e., winapi_family_partition(winapi_partition_desktop) true when project type win32, not windows 8.1.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -