void Nish(char* szBlog);

Nish’s thoughts on MFC, C++/CLI and .NET

void Nish(char* szBlog); header image 4

Entries from June 2008

Invoking a virtual method in a managed constructor

June 19th, 2008 · 2 Comments

In standard C++, we know that a virtual method call in a base class constructor will not invoke the derived class override. This is an area where C++/CLI behaves differently from standard C++. The vtables are initialized even before the base class constructor is called. There was a post in the MSDN forums earlier today [...]

[Read more →]

Tags: C++/CLI

When the pizza guy called me Neptune

June 17th, 2008 · 12 Comments

Okay I’ve been called many things in my life, but this was a first for sure. My wife ordered pizza and I went to pick it up on my way home from work. She gave my name as Nish, and she spelled out the first letter as “N for Neptune”. I’ve heard her use “S [...]

[Read more →]

Tags: General

Article : Using a TypeDescriptionProvider to support dynamic run-time properties

June 14th, 2008 · No Comments

Recently at work I had to use the TypeDescriptionProvider attribute while prototyping some new features for our product, and I thought it would be a good idea to demonstrate how to use this attribute and its related classes by writing an article. Using a TypeDescriptionProvider to support dynamic run-time properties

[Read more →]

Tags: C#/.NET · CLR/.NET BCL

Using underscore to prefix private member fields

June 13th, 2008 · 16 Comments

Joe Stagner blogged today about some basic coding guidelines one of which was to avoid using any sort of prefix for member variables (including the underscore). I personally prefer to use the underscore prefix on private member fields and mainly so they would be easily identifiable from local variables. But Joe’s guidelines suggested a workaround [...]

[Read more →]

Tags: C#/.NET

Nishant is spelt with a t at the end

June 8th, 2008 · 10 Comments

I am a bit fixated on how people spell my name – for those of you who don’t know, it’s “Nishant” – 7 unrepeated letters that even a 4-year old should find it trivial to remember. Unfortunately enough, many Indian names that end in “nt” are sometimes pronounced and spelled as “nth”, so there’s a [...]

[Read more →]

Tags: General

Adding a DockStyle.Fill control at run-time

June 7th, 2008 · 2 Comments

This one was simple to resolve but it did halt my progress for about 5-6 minutes recently. I had a form (actually a user control) that had a control on it added at design time docked to the right. During run time I was adding a new WinForms control that I had set to DockStyle.Fill. [...]

[Read more →]

Tags: CLR/.NET BCL · Windows Forms