Visual Studio for Windows Media Foundation - c++

I am going to build sample application using Windows Media Function, but I am confused with Visual Studio version that need to be used. Also how I can start with this sample application. Do I need to download Windows Developer SDK for building this sample? Also what tools I need to use to build UI components.
I want to build sample application for playing local video file.

To develop classic/desktop applications using Media Foundation API it is sufficient to use simplest edition of Visual Studio, e.g. Visual Studio 2015 Community Edition along with Windows 10 SDK (do not get confused by "Windows 10" in the title, appropriately built applications can run in Windows XP and more recent). You will have to look up desktop application samples in older Windows SDK versions up to version 7.1, since version 8 they were omitted (later they were put online here). At the same time, there are also newer Media Foundation samples available in the format of Windows 10 UWP applications, you can built them with the mentioned toolset as well.

Related

VS 2017 RC missing Windows 10 Mobile Emulator

I installed Visual Studio 2017 RC, and in general I'm really impressed! One problem, however, is that I can't figure out the proper method of installing the Windows 10 Mobile Emulator. I have installed the Windows 10 SDK as well as the Emulator itself. My Programs and Features clearly shows these two items are installed:
. Windows 10 for Mobile Image - 10.0.14393.0
. Windows Software Development Kit - Windows 10.0.14393.33
I also have properly selected the Cordova tools during the installation of VS 2017 RC. I can create a new JavaScript project using Cordova and it looks to be correct in the Solution Explorer.
But when I launch Visual Studio 2017 RC and then inspect the Solution Platforms dropdown, it only has these options:
Android
iOS
Windows-ARM
Windows-x64
Windows-x86
Configuration Manager...
I do not see any option for Windows 10 Mobile.
What am I missing?
Nevermind.... Somehow I installed more stuff and then found what I am looking for by selecting Windows-X86, and then there are options for Mobile Emulator 10.0.14393.0 in various memory and screen configurations. Just keep clicking things until it works, I suppose... Seriously, probably my own fault. Moving on!

Can I Install Visual C++ Redistributable 2010 and/or DirectX 10 to a Particular Folder?

I am looking to create a portable version of a program for Windows 8 that requires VCRedist 2010 and DirectX 10 to run properly. However, I am unable to use the installers because they attempt to install to the system path and, while the computer I am working on has administrator rights, I do not have it on the computers I will be transferring it to. After a lot of research, It seems I can include the VCRedist 2010 and DirectX 10 dll files in the application folder, but I have been unable to find a list of all the required dlls. If this is true could someone provide me with a list of them, and if it's not true does anyone know of an alternative way to do this?
System info: 32 bit OS, Windows 8
The first thing to say here is that you never redistribute DirectX. It is part of the operating system and can only be updated by a service pack, upgrading the OS, or through Windows Update. That has been true since Windows XP Service Pack 2, but it is a poorly understood fact.
The DirectX End-User Runtime packages (aka DXSETUP and DXWSETUP) never installs any version of DirectX on any version of the operating system! That has been true for over a decade.
If your application makes use of one of the side-by-side optional components that ship in the legacy DirectX SDK such as D3DX9, D3DX10, D3DX11, D3DCompile #43, XAudio 2.7, XInput 1.3, or XACT, then you must use the legacy DirectSetup package to redist those DLLs as they are never part of the operating system. Using DirectSetup always requires administrator rights.
See Not So DirectSetup for a fuller explanation.
For Windows 8 standard user only application, a better option is to use DirectX 11 and make use of one of the many open source replacements for D3DX functionality. If you need XAudio, you can use XAudio 2.8. If you use D3DCompile, you can include it side-by-side with your application from the Windows 8 SDK. If you use XInput, you can use XInput 1.4 or the older XInput 9.1.0.
Note that Windows 8.0 is now end-of-life. While still supported as a target for Visual Studio 2015, those users are expected to upgrade to either Windows 8.1 or Windows 10 to maintain support. In Windows 8.1, the D3DCompile #47 DLL is already part of the operating system.
Visual C++ 2010, 2012, 2013, and 2015 DLLs can be included side-by-side (aka application local deployment). You can use the Windows 8.1 SDK with VS 2010 using props files, but I'd recommend moving to a newer version of Visual Studio which can more easily make use of Windows 8.1 SDK content.
Another option here is to use VS 2013, target Windows 8 Store, and use that to handle all the deployment which does not require admin rights. You still have to use Direct3D 11 and avoid all use of legacy DirectX SDK components including D3DX9/D3DX10/D3DX11.
See Where is the DirectX SDK?.

how can I add windows store template to visual studio 2013?

I have visual studio 2013 and 64x win 7 pc.
I want to create a windows phone app with a single button and textbox.
When I click file>new>project I cant see windows store in templates.
I couldnt find how to search online from tools>external tools.
Did you installed Windows Software Development Kit (SDK) for Windows 8.1?
The sdk contains the components needed to develop windows store apps.
If you are going to develop Windows phone 8.0 instead of 8.1, this XDA forum thread should help you. I haven't personally tried that because I am looking to develop Windows 8.1 in Win 7 x64.
You can also try to install the SDK 8.0 and 8.1 lite version by Arnold Vink. I tried the sdk 8.1 lite version with no luck but perhaps it will work for you.
You can check out my SO question on what I have done so far. Hope this helps.

directx 9 cannot find the include libraries

I wanna start learning DirectX in Visual C++ 2010, but it says that d3dx11 and d3dx9 can't be found when I include d3dx9.h, I can play games in DirectX 11 and dxdiag says my computer is running directX 11, but when I searched for DirectX 11 in C drive and my D-Drive, it couldn't find anything. So I decided to install DirectX 11 and then I got a folder after installing, but it didn't have any include or bin folders, so I couldn't go to properties and VC++ and add the include directories. Decided to try DirectX 9 instead to start with, but when I installed DirectX 9 June 2010 version, I went to C\Microsoft DirectX SDK (June 2010) there is no directories, only DirectX utilities and documentation for c++ and sample browser and Command prompt. So I don't really know what to do anymore, I have tried to install d3dx9.lib and put in in the default lib folder for VS 2010. but no success, But I have DirectX 9 2004 summer libraries and Include folders set up for visual c++, but that is such an old version so it doesn't include d3dx9.lib. I'm running Windows 8.1 64 bit OS.
The DirectX SDK and all version of the D3DX libraries are both deprecated.
The 'modern' solution is to use the Windows 8.x SDK which comes with Visual Studio 2012 and Visual Studio 2013. You can install the Windows 8.1 SDK 'standalone' and use it with Visual Studio 2010 by using .props files. See MSDN and this blog post for all the details.
You can mix using the Windows 8.x SDK with the legacy DirectX SDK in order to continue to use D3DX for Win32 desktop applications--you cannot use the DirectX SDK for Windows Store apps, Windows phone, or Xbox One. See the instructions on MSDN for how to handle the include/lib path directories. If you are going to continue to use the legacy DirectX SDK, you need to be aware of a number of things:
The DirectX SDK (June 2010) installer has some compatibility issues with systems that have VS 2010 SP1 REDIST installed. See this post.
The DirectX SDK (June 2010) does not have the latest developer debug runtime for Windows 8.1. You have to install the Windows 8.1 SDK, VS 2013, or the VS 2013 remote debugging tools to get the DEBUG layers and REFERENCE device. See this post.
There is no support for the Direct3D 9 DEBUG device on Windows 8.1.
The "PIX for Windows" tool in the DirectX SDK does not work for Direct3D 10.x or Direct3D 11.x on Windows 8.1, Windows 8.0, or Windows 7 SP1 with the DirectX 11.1 Runtime installed. Use the Visual Studio 2013 Graphics Diagnostics, or Intel/AMD/NVIDIA's GPU tools.
If you are deploying a game that needs the legacy DLLs like D3DX, be sure to use the April 2011 refreshed version of DXSETUP and not the copy that is in the DirectX SDK (June 2010). See this post and be sure to read Not So DirectSetup.
Given all that, your life will be a lot easier if you just use Direct3D 11 and avoid the legacy DirectX SDK and D3DX entirely. You can find many Direct3D 11 replacements for D3DX that only requires the Windows 8.x SDK along with a bunch of updated samples. See Living Without D3DX, DirectX Tool Kit, and DirectX SDK Samples Catalog. You can get all that to work with VS 2010, but it's a lot easier to get Visual Studio 2013 Express for Windows Desktop (for Win32 desktop applications) and/or Visual Studio 2013 Express for Windows (for Windows Store apps and Windows phone apps).
PS: Even back when the DirectX SDK was still the supported way to get Direct3D headers for VS 2010, it was not available until you manually added the include/path directories to your project. That's why you can't include "d3dx9.h" in your project freshly created.

Directx 11.0 with visual studio 2012 on windows 8 64 bit

I want to begin learning DirectX 11.0 . I have Visual Studio 2012 ultimate installed on windows 8 pro 64 bit. I want to be able to develop games that would run in windows 7 as well.
Is this possible without downloading June 2010 SDK? or will the Windows SDK do? Can somebody post links to the right tutorials please?
I do not prefer 3rd party solutions and I want to avoid downloading the June 2010 SDK if possible.
Notes:
I have some experience with 3D game development in XNA.
I am a total newbie to DirectX.
Update:
DX SDK is now included in Windows SDK.
But I have not seen any tutorial talking about developing desktop games using this already included SDK.
Most of them ask to download DX June 2010 SDK; probably these tutorials have not updated themselves after arrival of VS2012.
And the recent ones talk about porting a VS2010 DX game to VS2012, and the first step generally is to download the DX June 2010 SDK.
Therefore, I am beginning to suspect whether it is possible to build desktop games using this new inbuilt SDK?
Or indeed one has to download the June 2010 DX SDK?
or June SDK needs to be downloaded only when porting VS2010 games to VS2012?
you have to download the DX SDK from MSDN I read the documentation
http://msdn.microsoft.com/en-us/library/windows/apps/hh452744.aspx
Programs compiled on visual studio 2012 with the built in SDK should work perfectly well on windows 7 (subject of course to not using any new API calls or anything). I'm running vs2012 on windows 7 using d3d11 and the programs it builds run perfectly well on there.