Resource Header Problem in Orcas March CTP

In a previous post I explained than when you create a MFC application with the March CTP of ‘Orcas’ and add a command or split button to a dialog, the .rc file is not compiled, because styles such as BS_COMMANDLINK are not found. My workaround for the moment was to redeclare them in the resource.h…

LINQ to XML

LINQ offers an API called LINQ to XML, formally known as XLinq, that provides support for working with XML. This API resides in the System.Xml.Linq namespace, and you need to add a reference to the assembly with the same name to be able to use it. If you installed the Orcas March CTP bits, the…

RONUA meeting, Timisoara, April 21, 2007

Since this is a local event, I’ll continue the post in Romanian. Sambata, 21 Aprilie 2007, la ora 09:00 are loc intalnirea membrilor Ronua din Timisoara, la LTHD Corporation, str. Ardeal, Nr. 70. Agenda evenimentului este: 09:00 – 09:10 – Intro si networking 09:10 – 10:10 – Introducere in LINQ Marius BANCILA, MVP VC++, SiemensVDO Automotive…

yield keyword and lazy evaluation in C#

yield is a new contextual keyword introduced to C# 2.0, vital for lazy evaluation and the performance of queries in LINQ. Being a contextual keyword means that yield can be used as a variable name in C# without any problem. When put before return it becomes a keyword. yield allows one enumerable class to be…

Romanian Mint Rubbing Association

I just came across this great site, http://www.mintrubbing.org/, the “official site” of Romanian Mint Rubbing Association. Mint rubbing is: mint rubbing (from Romanian “a freca menta”) – time and life management technique developed in Romania and practiced by millions of people worldwide. This site is dedicated to provide you all the resources need to put…

Visual Studio Trivia: size of VS IDE and documentation

Have you ever wondered how many words the Visual Studio IDE has? Or how many words are in the documentation? Well, according to Fabrice Fonk from the MSDN DevWiki project, the numbers are: 1 million words for the IDE over 50 million words in the documentation You can hear it from himself in this video.

LINQ: declarative and functional syntax

In my last post about LINQ I shown you an example about how to use the language integrated query to select information about directories. In this post I’ll get more into the syntax and show you something about the functional querying style. My examples will focus on displaying information about UEFA Champions Leage winners. Thus,…

Customize autoexp.dat for own types in VS2005

Suppose you have a class foo like this:

And you have a variable f(1, 2, 3) what you watch in your Watch window. The window looks like this: The field Value shows a default expansion of the object, {X=1 Y=2 Z=3}. However, this can be changed by modifying a file called autpexp.dat, located in…

Creators Admit C, Unix Were Hoax

A collegue of mine pointed to me today a chapter from a book called “The UNIX-HATERS Handbook”, published by IDG Books Worldwide Inc. in 1994 (ISBN 1-56884-203-1). One of the latest chapters is called “Creators Admit C, Unix Were Hoax”. In this chapter the authors say that Ken Thompson, Dennis Ritchie and Brian Kernighan addmited…

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…