LINQ Presentation and Demos Available for Download

On Saturday, April 22, I delivered a presentation on LINQ at a meeting of the RONUA community in Timisoara. The presentation was focused on sample codes for LINQ to Objects, LINQ to XML and LINQ to SQL. Today I uploaded on the site the presentation and demo programs so that you can download them. Here…

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…

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…

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…

Google and the April Fool’s Day

Google seems to take the April’s Fool Day very seriously. 😉 They did two practical jokes, and I’m wondering how many people did fall for it. First, was the Toilet Internet Service Provider, or TiSP. Yes that was a practical joke, of course. 🙂 Second, they posted this page about a new service: Gmail on…

CategoriesIT