C++ Team Blog

The latest in C++, Visual Studio, VS Code, and vcpkg from the MSFT C++ team

Latest posts

Jan 6, 2015
Post comments count 0
Post likes count 0

Targeting Android with the C++ REST SDK

Steven Gates

Right before the holidays we put together a new release, version 2.4.0, of the C++ REST SDK. One of the new features added in the library is support for targeting Android using the Visual Studio 2015 cross platform mobile development, as well as the x86 Android emulator. In this post I’m going to walk through showing how to create an Android Native Activity that utilizes the C++ REST SDK.  Creating a New Android Native Activity To create a new Android application start by using the Native-Activity Application (Android) project template under Visual C++ -> Cross Platform.   Once the template...

Dec 12, 2014
Post comments count 0
Post likes count 1

Debug JNI Android Applications using Visual C++ Cross-Platform Mobile

Ankit Asthana

With Visual Studio 2015 preview (download here) we have introduced the ability for developers to create cross-platform mobile applications with Visual C++. For the Android platform specifically this enablement includes ability for developers to create native-activity applications, dynamic and static native binaries along with a range of features to provide a fast, lean and mean edit->build->debug cycle. This blog in particular is to provide a walkthrough on how Visual Studio can be used to debug your pre-built native android applications (native activity and JNI) using the Visual Studio debugger even if you...

Dec 8, 2014
Post comments count 0
Post likes count 0

Visual Studio 2015 Preview: Work-in-Progress Security Feature

Jim Hogg

BackgroundThe Preview for Visual Studio 2015 was announced on November 12, 2014.  It includes a new, work-in-progress feature, called Control Flow Guard.  By simply adding a new option to your Project, the Visual C++ compiler will inject extra security checks into your binaries.  These will detect attempts to hijack your code.  The check will stop execution of your code, before the hijacker can do damage to your data or PC.This blog explains how you can experiment with Control Flow Guard in the Preview.  Your feedback will determine how we move forward in our release planning.For the rest...

Dec 5, 2014
Post comments count 0
Post likes count 0

Developing Native-Activity (Android) applications

Ankit Asthana

Overview Visual Studio 2015 preview (download here) introduces the ability for developers to create Android Native Activity application as a part of the cross-platform mobile development. Android platform with Android Native Activity (API Level 9) introduced the capability to create pure C/C++ applications. While there is some hidden Java JNI code in the background the idea is to abstract this detail away from the developer. Native Activity applications are popular for gaming (e.g. Unreal 4) and graphic intensive (OpenGL) applications. This post will guide you through the experience of creating a Native Activit...

Dec 2, 2014
Post comments count 0
Post likes count 0

GoingNative 32: C++17 Sneak Preview

Eric Battalio

From Sneak Preview of C++17 Channel9:Join us with ISO Committee member (and Microsoft as well, of course =P) Gabriel Dos Reis, who graciously took the time to give us the inside scoop of some things that made it into C++17, as well as things that got taken out. All this is fresh off the press of the most recent C++ Standards Meeting!If you have ideas for future Going Native episodes, let us know in the comments below.(And if you develop for iOS or Linux, please take our survey. We want to talk!)

Nov 25, 2014
Post comments count 0
Post likes count 0

iOS / Linux Cross-Platform C++ Survey

Eric Battalio

We want you to take another survey.Many of you continue to participate in our surveys and opt-in for one-on-one conversations about your development habits. Your feedback helps us better understand the peculiarities of cross-platform development and the challenges of specific platforms when it comes to C++.Again we return to you for help understanding the developer experience. This time, we want to learn more about your experiences developing for iOS and Linux platforms as part of a cross-platform effort that may or may not include Windows apps. If you have a few minutes, take the survey.The last question provide...

Nov 21, 2014
Post comments count 0
Post likes count 0

Native Memory Diagnostics in VS2015 Preview

Adam Welch (MSFT)

In Visual Studio 2013 Update 2 and also in the earlier CTP releases of Visual Studio 2015, we released a memory diagnostic tool that allowed developers to take heap snapshots of their application and then examine the heap contents upon terminating their application.  The initial release supported viewing managed and native objects in the heap, and an update in the first Visual Studio 2015 CTP added support for native type derivation and value inspection.  While this tool was a good start in providing Visual Studio developers with an in-box memory profiler, it lacked the ability to easily examine heap conte...

Nov 19, 2014
Post comments count 0
Post likes count 0

Visual C++ Compiler on Rise4Fun

Eric Battalio

As you know, through CTPs and Preview releases, we have been trying to make the Visual C++ compiler bits available more frequently.  In the same line, we have now decided to provide a view into the live development branch for the Visual C++ compiler through the website http://rise4fun.com/vcpp.This site allows you to compile simple code without the need to install Visual Studio. It can then be used to try the latest compiler features. Please do note that these are the latest bits and will go through more quality control eventually but this is an effort to provide an early look into what we are doing.In order...

Nov 17, 2014
Post comments count 0
Post likes count 0

C++11/14/17 Features In VS 2015 Preview

Stephan T. Lavavej - MSFT