|
Category Archive for Software Development
14 May, 2013
amazon C++11
My article “Advanced C++ Tips and Tools” is live on the tech.book(store) website of Amazon.
C++ allows you to write clean, safe and fast code, and writing it is even easier than ever thanks to new features in C++11. This article highlights a couple of tips…
You can read the full article here.
5 Apr, 2013
Visual C++ Visual C++ 2012 Visual Studio Visual Studio 2012
Microsoft has released Update 2 for Visual Studio 2012 (VS2012.2). You can get it here.
Just as with VS2012.1 (which is installed as part of VS2012.2 for those of you who don’t already have VS2012.1 installed), this release contains important fixes as well as a wealth of new functionality, addressing feedback we’ve received from the community and aligning with key software development trends in the market. The new functionality primarily spans (though is not limited to) five areas of investment: agile planning, quality enablement, Windows Store development, line-of-business development, and the general developer experience.
Check out Somasegar’s blog post for more details on this update.
27 Nov, 2012
update Visual C++ 2012 Visual Studio 2012

The first update for Visual Studio 2012 has been released.
This update delivers bug fixes, but also new functionality. The new functionality in this first update primarily spans four areas: Windows development, SharePoint development, agile teams, and continuous quality.
We can now target Windows XP again with C++ code, and there have been a couple of C++ unit testing enhancements. For Windows Store applications, the update includes support for both mixed-mode managed/native debugging and for native ARM dump debugging.
Get more details about the update.
Download the update.
7 Nov, 2012
C++11 Visual C++ 2012
As promised, Microsoft is releasing out-of-band updates for Visual C++. A preview of the first such update has now been released as the November 2012 Compiler CTP. This is a Customer Technology Preview and does not come with a ‘Go Live’ license, but it allows you to start experimenting and testing new features, and to provide feedback.
This November 2012 CTP contains a lot of new C++11 features:
- Variadic templates
- Uniform initialization and initializer_lists
- Delegating constructors
- Raw string literals
- Explicit conversion operators
- Default template arguments for function templates
More details, including installation instructions and how to give feedback can be found here.
Download the November 2012 CTP and start playing with these new C++11 features.
21 Oct, 2012
C++11 call_once once_flag singleton thread-safe
C++11 makes it easier to write a thread-safe singleton. Here is an example. The class definition of the singleton looks as follows:
#include <memory>
#include <mutex>
class CSingleton
{
public:
virtual ~CSingleton();
static CSingleton& GetInstance();
private:
static std::unique_ptr<CSingleton> m_instance;
static std::once_flag m_onceFlag;
CSingleton(void);
CSingleton(const CSingleton& src);
CSingleton& operator=(const CSingleton& rhs);
};
The implementation of the GetInstance() method is very easy using C++11 std::call_once() and a lambda:
std::unique_ptr<CSingleton> CSingleton::m_instance = nullptr;
std::once_flag CSingleton::m_onceFlag;
CSingleton& CSingleton::GetInstance()
{
std::call_once(m_onceFlag,
[] {
m_instance.reset(new CSingleton);
});
return *m_instance.get();
}
3 Oct, 2012
C++ AMP
Kate Gregory (a fellow VC++ MVP) has published her book called “C++ AMP: Accelerated Massive Parallelism with Microsoft Visual C++”.
The official description is as follows.
Capitalize on the faster GPU processors in today’s computers with the C++ AMP code library—and bring massive parallelism to your project. With this practical book, experienced C++ developers will learn parallel programming fundamentals with C++ AMP through detailed examples, code snippets, and case studies. Learn the advantages of parallelism and get best practices for harnessing this technology in your applications.
Discover how to:
- Gain greater code performance using graphics processing units (GPUs)
- Choose accelerators that enable you to write code for GPUs
- Apply thread tiles, tile barriers, and tile static memory
- Debug C++ AMP code with Microsoft Visual Studio®
- Use profiling tools to track the performance of your code
Find out more about this book here.
3 Sep, 2012
The next meeting of the Belgian C++ Users Group is planned for Tuesday October 16th 2012 at 18:30 in the Microsoft offices in Zaventem.
The agenda is as follows:
- Session 1: An introduction to the C++ Network Library (Glyn Matthews)
- Break
- Session 2: Comparison between Unit Test Frameworks (Mark Van Peteghem)
- Drink
Microsoft is sponsoring this event by providing the location, drinks and sandwiches.
The event is free for everyone, but you need to register for it.
1 Jun, 2012
Visual C++ 2012 Visual Studio 2012
Microsoft has made the Release Candidate of Visual Studio 2012 available for download. The release candidate comes with a Go-Live license.
Read Jason Zander blog post for details of this release.
Get it here.
24 May, 2012
C++ AMP GPGPU
The third meeting of the Belgian C++ Users Group is planned for Wednesday June 27th 2012 at 18:30 in the Microsoft offices in Zaventem.
There will be two presentations, and we are proud to announce that they will be given by 2 international top speakers:
- Kate Gregory is the author of over a dozen books, and speaks at DevTeach, TechEd (USA, Europe, Africa), and TechDays, C++ Connections (with fellow speakers Herb Sutter and Bjarne Stroustrup), among others. Her speaker ratings are consistently in the top 10%. Kate is a C++ MVP, a founding sponsor of the Toronto .NET Users Group, the founder of the East of Toronto .NET Users group, a member of the INETA speakers bureau, and a member of adjunct faculty at Trent University in Peterborough. Since January 2002 she has been Microsoft Regional Director for Toronto and since January 2004 she has been awarded the Microsoft Most Valuable Professional designation for Visual C++. In June 2005 she won the Regional Director of the year award and in February 2011 she was designated Visual C++ MVP of the year for 2010. Kate develops courses on C++, Visual Studio, and Windows programming for Pluralsight and is writing a book on C++ AMP.
- Rong Lu is a Program Manager in the Visual C++ team at Microsoft. She holds both Bachelor’s and Master’s degrees in Computer Science from Shanghai Jiaotong University. She is now working on Visual Studio vNext Application Lifecycle Management Tools for C++. Before that, she worked on the Visual Studio 2005 SDK, Visual Studio 2008 and 2010 releases, mainly responsible for designing architecture tools and SharePoint development tools. She has been a speaker at TechEd since 2007
Both are experienced speakers, and it’s a perfect opportunity for networking. If you ever wanted to ask a question to a member of the Visual C++ product team, now is your chance.
The agenda will be as follows:
- Session 1 (18:30 – 19:30): What’s new in VC++11 (Rong Lu)
- Break
- Session 2 (19:45 – 20:45): C++ AMP (GPGPU Computing) (Kate Gregory)
It is time to start taking advantage of the computing power of GPUs. C++ AMP can deliver orders of magnitude performance increase with certain algorithms by utilizing the GPU to perform mathematical calculations.
- Drink
Microsoft is sponsoring this event by providing the location, drinks and sandwiches.
The event is free for everyone, but registration is required. Register now.
A limited number of seats are available.
( PS: If you know anyone interested in C++, please forward this invitation to them. )
9 May, 2012
Visual C++ 11 Visual Studio
Most op you will know by now that the Visual Studio 11 Beta UI is rather gray. There was a lot of feedback about this from the communities, and it seems Microsoft is listening. They have announced a couple of UI changes to bring back some color to the UI.
Check out this blog post for a description of the changes, including before and after screenshots. I definitely like the new upcoming changes
24 Feb, 2012
Beta Visual Studio Visual Studio 11
Microsoft has announced that it will release Visual Studio 11 Beta on 29th of February, and that it will be “go live,” meaning you will be allowed to start using it in production environments. Read the official announcement.
The user interface of the new Visual Studio 11 is completely overhauled. It now follows the Metro principles of clean UI that uses typography and white space for layouting instead of lines. Below are two screenshots of the UI in the beta version.

As you can see, it’s completely different compared to Visual Studio 2010. Themes are supported, so you’ll be able to design whatever theme you want. An in-depth discussion of these changes can be found on the Visual Studio Team Blog.
The product pages have also been updated with information about the upcoming releases. One new version of the product is called “Team Foundation Server Express Beta”, which is a free collaboration software targeted at small teams. Read more about it here.
21 Feb, 2012
C++ AMP
Daniel Moth from the C++ AMP development team has posted an interesting blog post about double precision floating point arithmetic support in C++ AMP and its limitations on current hardware.
Read it here.
3 Feb, 2012
C++ AMP Visual C++ 11
As promised, Microsoft has released an open specification of C++ AMP: Accelerated Massive Parallelism 
This allows other compiler vendors to implement support for C++ AMP on any platform.
Read the official announcement.
Download the specification.
23 Jan, 2012
Accelerated Massive Parallelism C++ AMP Mandelbrot Visual C++ 11
It is time to start taking advantage of the computing power of GPUs…
A while ago I wrote an article about how to use the Microsoft Parallel Patterns Library (PPL) to render the Mandelbrot fractal using multiple CPU cores. That article can be found here.
This new article will make the Mandelbrot renderer multiple times faster by using a new Microsoft technology called C++ AMP: Accelerated Massive Parallelism, introduced in the Visual C++ 11 Preview.
Read the rest of this entry »
5 Jan, 2012
desktop icons
The following code will toggle the visibility of the desktop icons, and will update the checkmark in the menu when you right click the desktop.
HWND GetDesktopHWND()
{
HWND hProgman = FindWindow(_T("Progman"), 0);
if (hProgman)
return FindWindowEx(hProgman, 0, _T("SHELLDLL_DefView"), 0);
return NULL;
}
void ToggleDesktopIcons()
{
HWND hWndDesktop = GetDesktopHWND();
if (hWndDesktop)
SendMessage(hWndDesktop, WM_COMMAND, 0x7402, 0);
}
23 Dec, 2011
CPPUG MSDN Belux User Group
I’m going to try to get a C++ User Group going in Belgium, and got support from the Microsoft Developer Network (MSDN) Belux Team 
Here is the official call for action:
Are you passionate about C++ and interested in finding like-minded people? Feel like coming together, setting an informal User Group in 2012? We’d like to support you in that and have a call to action for you.
Marc Gregoire, C++ MVP and author of the book Professional C++, 2nd Edition is one of the folks passionate about the technology and interested in starting up a more active C++ community in Belgium. Are you interested? Join Marc and the MSDN Belux Team for an informal discussion at the Microsoft office in Zaventem on Tuesday January 10th 2012 at 6:30 PM.
Contact Marc through email, leave a note on the MSDN Belux Team blog or reach out to Katrien De Graeve from MSDN Belux via her Twitter and we’ll see you in January.
If you are looking for some of the other Microsoft technology communities there is the full listing here: http://msdn.microsoft.com/nl-be/cc196311.
17 Oct, 2011
WIC Windows Imaging Component
The Windows Imaging Component (WIC) is a flexible and robust API for working with images on Windows. The API is extensible. Third-party vendors can create new image codecs (readers and writers) to make new image formats available to all applications that use the WIC API. Here is a brief description from the MSDN:
The Windows Imaging Component (WIC) provides an extensible framework for working with images and image metadata. WIC makes it possible for independent software vendors (ISVs) and independent hardware vendors (IHVs) to develop their own image codecs and get the same platform support as standard image formats (for example, TIFF, JPEG, PNG, GIF, BMP, and HDPhoto). A single, consistent set of interfaces is used for all image processing, regardless of image format, so any application using the WIC gets automatic support for new image formats as soon as the codec is installed. The extensible metadata framework makes it possible for applications to read and write their own proprietary metadata directly to image files, so the metadata never gets lost or separated from the image.
The MSDN states the primary features of WIC as follows:
- Enables application developers to perform image processing operations on any image format through a single, consistent set of common interfaces, without requiring prior knowledge of specific image formats.
- Provides an extensible “plug and play” architecture for image codecs, pixel formats, and metadata, with automatic run-time discovery of new formats.
- Supports reading and writing of arbitrary metadata in image files, with the ability to preserve unrecognized metadata during editing.
- Preserves high bit depth image data, up to 32 bits per channel, throughout the image processing pipeline.
- Provides built-in support for most popular image formats, pixel formats, and metadata schemas.
WIC comes with the following standard built-in codecs:
- BMP (Windows Bitmap Format), BMP Specification v5.
- GIF (Graphics Interchange Format 89a), GIF Specification 89a/89m
- ICO (Icon Format)
- JPEG (Joint Photographic Experts Group), JFIF Specification 1.02
- PNG (Portable Network Graphics), PNG Specification 1.2
- TIFF (Tagged Image File Format), TIFF Specification 6.0
- Windows Media Photo, HD Photo Specification 1.0
All codecs can both load and save the specific image format, except the ICO codec which can only load icon files and not save them.
Reading all this, it looks like WIC is pretty powerful, and the best part is that it’s easy to use as I will demonstrate in this article. Read the rest of this entry »
11 Oct, 2011
C++0x C++11 ISO/IEC 14882:2011(E)
The ISO International Organization for Standardization has now officialy published the C++11 standard 
Here is part of the press release:
C++, one of the most popular programming languages used in everything from Web browsers to 3D video games, has been fully updated and published as, ISO/IEC 14882:2011, Information technology – Programming languages – C++.
ISO/IEC 14882:2011 defines the programming language and specifies requirements for implementation. Also known as C++11, this is the first major revision of the standard since 1998. Its new features extend C++’s traditional strengths of flexibility and efficiency – for example, lambda functions, move semantics, and variadic templates further enable developers to use powerful expressiveness and strong abstraction to write efficient, high-performance code with full access to the hardware available when needed. Even more, the new C++11 has the convenience and ease of use of other modern languages – from features like auto type deduction and explicit virtual override control, to standard smart pointers that mean never writing delete again.
You can read the complete press release here.
10 Oct, 2011
book C++0x C++11 Professional C++ Wiley Wrox
My book “Professional C++, Second Edition”, published by Wiley/Wrox, is now featured in a dedicated post on the Microsoft Visual C++ Team Blog 
Read the VC++ Team Blog post here.
20 Sep, 2011
Visual C++ 11 Windows 8
By now, virtually everyone on this planet heart about the Windows 8 Developer Preview that was launched a couple of days ago on the Microsoft BUILD conference.
Everyone can download this developer preview. This will give you the opportunity to play and experiment with the new Metro layout for Windows.
The developer preview also includes a preview of Microsoft Visual Studio 11 express edition, which makes it very easy to make Metro style applications in C++, C#, VB.Net, or JavaScript.
Any serious developer should download this preview and learn as much as possible about the new Windows platform.
Go to the BUILD website to download the preview and to download interesting video recordings of the sessions on the BUILD conference.
|
 |
|