Restart Manager in MFC

One of the new features available in MFC in the Visual Studio 2010 CTP is the Restart Manager. This was introduced with Windows Vista to offer support for restarting application when a crash occurs or when an automatic update needs to close and then restart an application. When you create a new MFC project in…

BigInteger Is Back

One of the new features in .NET 4.0 is the BigInteger class. This was suppose to be part of 3.5 framework, but after the CTP it was gone. Now it’s back. This big integer is a really large integer representation. However, I was not able to find the precision documented anywhere. The class is available…

New WPF look of Visual Studio 2010

A few days ago, Microsoft, through Jason Zander, General Manager of Visual Studio, has revealed the new look of Visual Studio 2010 at the VSLive conference. Several screenshots and description of the new look you can find on Zander’s blog. The new editor is using WPF and makes extensive usage of .NET 4.0. Here is…

C++ static_assert, a niche feature

The new C++ standard defines a new keyword, static_assert, that is already available in Visual Studio 2010 CTP. This new feature allows introducing compile time asserts. It takes an expression that can evaluate to bool and a string. If the expression evaluates to false, the compiler issues an error with the given string literal. If…

Lambdas in C++

The new C++0x standard adds lambda expressions to the language. Visual Studio 2010 CTP is already supporting this new feature that brings functional techniques to C++ too. What is a lambda expression? It’s basically a function. In F# it’s an anonymous function, in C# it’s an anonymous delegate; in C++ it’s in fact an anonymous…

Optional and Named Parameters in C# 4.0

So far, C#, unlike C++, did not support optional arguments. For instance, suppose you need a function to print log a message, that can add a new line or not after writing the message. Most of the times you want a new line, so you don’t want to specify that for most of the calls….

Type inference in C++

The new C++0x standard provides support for type inference. The auto keyword that was doing nothing in C++ was given a new meaning: a placeholder for a type inferred by the compiler. For those familiar with C#’s var keyword, this is basically the same. Here is a comparison between auto in C++ and var in…

New Things in C# 4.0

A few days ago Anders Hejlsberg delivered a presentation about the Future of C# at the Professional Developers Conveference 2008. He focused on the new things that will be available in C# 4.0: dynamic typed objects optional and named parameters improved COM interoperability co- and contra-variance The recording of the presentation is available on Channel9…

Visual Studio 2010 & .NET 4.0 CTP released

Microsoft has recently released the first Community Technology preview for Visual Studio 2010 and .NET Framework 4.0. Here is a list of new things in VC++, from the VC++ team’s blog: MSBuild Support for Visual C++ IntelliSense and Browsing Experience Improved Responsiveness and Scale Improved Accuracy and Robustness C++0x Features Lambda Expressions Rvalue References static_assert…

Google Chrome Beta

According to the official Google Blog, Google is set to release today a beta version of a new web browser, called Chrome. They say that: Like the classic Google homepage, Google Chrome is clean and fast. It gets out of your way and gets you where you want to go. There is a comic book…