In India, vehicles are driven on the left side of the road, same as in the UK, while in Canada, vehicles are driven on the right side of the road. Now, in India, when crossing any road with 2-way traffic, you look to your right and then rush to the middle of the road if [...]
Entries from November 2005
Crossing the road and looking the wrong way!
November 17th, 2005 · 6 Comments
Tags: General
The futility of const ref objects
November 16th, 2005 · 3 Comments
Most C++ programmers would have trained themselves to use const objects and const member functions whenever and wherever possible, and rightly so. But, if you try to declare a const member function for a ref class, you’ll get error C3842 – member functions of managed types cannot be const. So, while you can declare a [...]
Tags: C++/CLI
Speed up mixed mode apps with __clrcall
November 12th, 2005 · 3 Comments
When you compile with /clr and you have a native class in your code (one that’s neither a ref class nor a value class), there are two entry points generated for its methods – a managed entry point and a native entry point. This allows both managed and native callers to call these methods, and [...]
The __FUNCSIG__ macro
November 12th, 2005 · 3 Comments
I cannot believe that I didn’t know of this macro all this while. Countless times in the past, when I had to track the life-cycle of an object, I had put code such as printf(“inside ctor”) and printf(“inside function F(int)”) in my class, and now I find out that all I had to use was [...]
Tags: C++
Got a new desktop
November 10th, 2005 · 4 Comments
I got a new P4 3.2 GHz with HT, 2 MB L2 Cache, 2 Gigs of RAM, 160 GB SATA, 17″ LCD, DVD burner etc. It’s my first ever LCD outside of my laptop and it’s a welcome change I’ve installed XP Prof SP2, Office 2003, VS.NET 2003, VS.NET 2005 and the regular stuff like [...]
Tags: General