Visual Studio 2012 for windows 8 not showing win32 console application option - c++

I downloaded Microsoft visual studio 2012 for windows 8 to run C++ programs but when I go to New Project -> Templates -> Visual C++ it doesn't show option for win32 console application instead its showing App XAML files .What can be the solution to this problem ?

You have probably downloaded the version which allows only the development of Windows 8 apps.If you are not interested in doing so you should download the Express for Desktop version.

Related

Error MSB8036: The windows SDK version 10.0.17763.0 was not found

OS: Windows 10 64bit
Platform: Visual Studio 2019
I'm compiling C++ DLL project.
Although I installed "Windows 10 SDK (10.0.17763)" and "Visual Studio SDK", the visual studio can"t see the SDK.
I try to "Retarget Solution" but there is no list of Windows SDKs.
The WindowsSdkDir, WindowsSdkDir_10 environment variables are empty.
How do I get the Visual Studio 2019 to detect the installation of the Windows SDK and associate it to my project
Usually you can select a specific Windows SDK (exact version) or "newest" SDK in your project properties (right click, properties).
I think your project uses some specific Windows SDK Version which is not installed on your machine. To make your project Windows SDK-version independent you should go to the properties page and select "Windows 10 SDK (newest)" - or similar

What package should i install to get Win32 console application (Visual Stdio 2019)

My installed or something in my vs 2019 files screen shot
My installed or something in my vs 2019 files widen screen shot
i dont have templates or any win32 console application
pls help me im new to vs 2019
i only coded two applications ( Windows Form Application )
To install other templates, you can open the Visual Studio Installer (open by searching in the windows menu). Choose your VS installation, click more then modify.
Ensure the above option is ticked, then click modify at the bottom.
When you open VS, this is the project type you should make.
.Net Desktop Development
This would help you developing console apps on vs 2019
You could get to vs installer from "Tools>get tools and features"

Can't change Windows SDK version in Visual Studio C++ project

I have a Visual Studio C++ console application that I created with Visual Studio 2015 and now I can't compile it (with Visual Studio 2017) because it is targeting the Windows 8.1 SDK, which is not installed. The problem is that I can't retarget the project to the Windows 10 SDK.
What happens is that when I open the project properties page and go to General - Target Platform I see the Windows 10 SDK in the dropdown, and I am able to select it... but as soon as I press Apply, it reverts back to 8.1 by itself. No error message is provided.
Visual Studio installer says that, indeed, the listed SDK version is installed:
So what's going on here? Is there a way to retarget my project without having to install the Windows 8.1 SDK?
Not sure if that matters but: this project is actually just a "wrapper" around an existing bare project consisting of just a bunch of .cpp and .h files, which was developed by another person. I'm really not familiar with C++ development.
After hours of struggling with this problem, I coincidentally discovered that selecting Project Properties/General, changing "Platform Toolset" to v141_xp (instead of v141) forcibly drops the Windows SDK Version to 8.1 or 7.0. I'm not sure how Visual Studio chooses which SDK to use.
EDIT: You must edit .vcxproj and change both:
<TargetPlatformVersion>10.0.17134.0</TargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>

Why can't I find the DirectX template?

I'm currently using Visual Studio 2013 Express for Windows desktop, but I can't really find the DirectX template, FILE -> New project -> Visual C++ , but there's neither a DirectX template nor a Windows app folder-sector. I've searched this in Google but no one seem to have posted about it. Where is the template?
The "DirectX" templates provided by Visual Studio are for Windows Store, Windows phone, or Universal apps. They are only provided in the VS 2013 Express for Windows, VS 2013 Pro+, or VS 2013 Community edition.
There are only two built-in Visual C++ Win32 desktop templates in Visual Studio:
Win32 Console Application
Win32 project
As others have noted, if you want to build for Windows Store, Windows phone, or Universal apps you need (a) Windows 8.1 and (b) some other edition of VS 2013.
If you are writing a Win32 desktop application and/or have Windows 7, consider downloading and installing this template: Direct3D Win32 Game Visual Studio template
Also, I highly recommend using VS 2013 Community rather than VS 2013 Express for Windows Desktop if you fit the quite generous license requirements--if not, buy VS 2013 Pro.
You need to download the correct version of Visual Studio. The desktop version doesn't have DirectX for Windows store apps. You need to download Visual Studio 2013 Express For Windows, scroll down to Express 2013 for Windows or direct link

Add MySQL.Data.RT.dll Reference to Windows Store App Project in Visual Studio 2013 C++

i want to use the mysql-connector/net (6.9.5) in my windows 8.1 app (Visual Studio 2013, C++) connecting my Database.
But i can't reference the MySql.Data.RT.dll. Here the error-message:
Microsoft Visual Studio
Could not add a reference to:
C:\develop\mysqlConnectorNet\RT\MySql.Data.RT.dll
For one of the following reasons:
Targets a higher version of the .NET Framework
Not a .NET assembly
Not a registered ActiveX control
In C# it is working:
https://blogs.oracle.com/MySqlOnWindows/entry/how_to_using_connector_net
Also tried MySql C++ Connector -> no success.
Any ideas how i can access my MySql-Database from a Windows 8.1 App written in C++?
Thanks for help!