C++ Team Blog
The latest in C++, Visual Studio, VS Code, and vcpkg from the MSFT C++ team
Latest posts
Real World Cross-Platform Development with Visual Studio 2015: Synergex
The Visual C++ team welcomes opportunities to help partners, customers and the community (future customers) realize the benefits of Visual C++ and Visual Studio 2015. Recently, we have been fortunate to work with Synergex to go beyond debugging Windows code with Visual Studio: Now we’re focusing our efforts on moving our customers and our own development to Visual Studio 2015. Initially, we ran into problems with the Linux-built unmanaged runtime, which would not work with the new, faster Microsoft Android emulator. To work around this, we created a shared project for our runtime and added the Android compo...
Bringing Clang to Windows
As you may know, Visual Studio now supports building Android and iOS applications using Clang. We realize the need of our users to write cross-platform apps and we know that C++ offers massive benefits in the cross-platform arena. Clang has made impressive strides in standards conformance and diagnostics and is fast becoming the preferred C++ compiler for non-Windows platforms. In order to extend the benefits of Clang to C++ developers building apps for Windows, we have been working on an experimental implementation of Clang on Windows. First preview of that was demonstrated in this //build talk by Jim Radigan. ...
Visual Studio 2015 RC Now Available!
Today Soma (and Brian and Scott) announced the availability of Visual Studio 2015 RC, Team Foundation Server 2015 and Visual Studio 2013 Update 5. They all point to the downloads, so if you are in a hurry: Please submit feedback. You C/C++ developers have never been shy about voicing your concerns; channel that energy into providing us critical feedback about where we can improve your experience and better support your development scenarios! We read everything you share with us. UPDATE 4/30/2015: Install issues. Thanks for your installation problem feedback. There are a couple of things you can tr...
MFC Dynamic Dialog Layout
One of the frequently requested MFC features (and by the way, thanks for the feedback and keep it coming!) is the ability to intelligently resize dialogs and their content at runtime. One approach is to intercept WM_SIZE message of the parent dialog and recalculate the size and position of the child controls accordingly. It works, but is extremely error prone – just imagine doing this for each control in every dialog in your application. It also introduces non-trivial logic in the presentation layer of you application, creating maintenance headaches down the road. In Visual Studio 2015 RC, we’r...
Single-File IntelliSense and other IDE Improvements in VS2015
Hello C++ World! With the release of RC today, we've got a whole bunch of goodies in the IDE, not the least of which is refactoring as well as a really neat feature we like to call Single-File IntelliSense, where you can simply open a file (not needing a VC project) and take advantage of browsing, IntelliSense, and navigation support in VS! That's right, now you can see all this goodness: with nothing but source files! Check out the Channel 9 video for more info! Check out this short video on our IDE improvements since VS2013 Update 2 (when the shared asset project experience). For more info and demos on ...
Debug C++ code on Linux from Visual Studio
As you may have heard, Visual Studio 2015 introduces GDB support for Android development. The interesting thing about the capability is that because it debugs using GDB, it’s possible to adapt the implementation to debug other targets that support GDB debugging as well (e.g. Linux and Raspberry Pi). In this post I will share the steps I took to enable remote debugging of C++ code on Linux, Raspberry Pi.The approach does come with some limitations as I’m adapting the implementation that was designed specifically for Android, but it shows the potential for the capability. This is a good example of why w...
C++11/14/17 Features In VS 2015 RC
More about resumable functions in C++
With the release of Visual Studio 2015 RC, we wanted to provide an update on the progress of resumable functions support in Visual C++. Since last time, we have made some changes to our experimental implementation that tracks the latest proposal (with the exception that resumable_traits and resumable_handle are called coroutine_traits and coroutine_handle as in earlier proposal). Please note that this is still an experimental feature that is currently available only for x64 targets and also requires an opt-in switch (/await) to use it. What's New? Auto-type deduction We enable auto type deduction for resumable fu...
What’s new with C++ cross-platform development with VS 2015 RC
Continuing our investment in Visual C++ cross-platform mobile, starting with VS2015 RC (download here) we are pleased to announce support for building iOS applications using Visual Studio. Our iOS targeting story is definitely work in progress, and this feature enablement shares our current line of thinking. Over the next few releases we will be focusing on ironing out our iOS targeting story but for now to try out our iOS experience follow this MSDN article! In addition to our recent platform enablement for iOS we have also added a wide range of features our Android and cross-platform mobile develope...