MFC in Orcas: support for Vista’s command button

MFC in Orcas comes with several important changes, such as support for Vista specific command button and split button. I have put together a small demo application displaying a command button with the tex Say “Hello Vista” and the note “Click on this button to show a “Hello Vista” message!”. The command button is still … Read more

What’s new in Orcas for VC++

Channel9 has posted recently an interview with Sarita Bafna, a Program Manager on the VC++ Libraries team, about the new features available in Orcas (in March CTP also) for VC++. The interview is focused on 2 things: marshaling library and MFC updates. The marshaling library consists on one single API, marshal_as, for marshaling between managed … Read more

Microsoft’s Plans for ‘Orcas’ and ‘Rosario’

Prashant Sridharan, Microsoft group product manager for Visual Studio, announced Monday, March 26, 2007, that Microsoft plans to release Visual Studio code-named ‘Orcas’ by the end of the year, and it also plans to release Visual Studio code-named ‘Rosario’ (the next version after ‘Orcas’) within an year timeframe after that. A CTP for ‘Rosario’ might … Read more

LINQ example: listing directories

LINQ is a valuable feature for database and XML programming, but not only. Basically, you can use LINQ with everything that returns an IEnumerable. Here is an example, when I want to list the directories of a parent directory, in alfabetical order, and grouped by the file attributes (first all that have only the flag … Read more

Interview with Titans

Channel 9 forums has posted in January a video interview with Anders Hejlsberg (chief architect of C#), Herb Sutter (architect of C++), Erik Meijer (architect of VB.NET and C#) and Brian Beckman (physicist and architect of VB.NET). For one hour they talked about new trends in programming, the new issues and dificulties faced, and what … Read more

Installing Orcas March CTP

This week I decided to test the March CTP of Visual Studio code-named ‘Orcas’. So I started with a google search for the the download page, I found two: Microsoft Pre-release Software Visual Studio Code Name “Orcas” – March Community Technology Preview (CTP) (Self-extracting Install): contains 7 archives totalling 4.5GB Microsoft Pre-release Software Visual Studio Code … Read more

Customize Places Bar in Common File Dialog

Recently, CodeGuru has published my article about customizing the Places Bar of the common file dialog. In this article I have explained how to twick the registry to display your own list of shortcuts in the places bar. The folders are specified in registry under HKEY_CURRENT_USER in Software\Microsoft\Windows\CurrentVersion\Policies\ComDlg32\PlacesBar in two ways: either by IDs for … Read more

LINQ presentation

Anders Hejlsberg, creator of Turbo Pascal and C#, delivered a great presentation on LINQ on Tuesday. This was actually my first contact with LINQ (which stands for Language INtegrated Query), but it makes me envy the C# and VB.NET programmers, because these are the only two languages that support it. LINQ defines a set of general-purpose … Read more

Prefer std::string to char*

This is the title of my last article published on CodeGuru, http://www.codeguru.com/cpp/cpp/string/general/article.php/c13267/. Being active on forums like CodeGuru or MSDN I’ve seen so many times people using char* in places where a std::string would have made their life much easier. This is an error usually made by people coming from a C background, or those … Read more