void Nish(char* szBlog);

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

void Nish(char* szBlog); header image 4

Entries from September 2005

Breaking change – OnNcHitTest

September 16th, 2005 · 14 Comments

Alright, this is a really bad one. This line of code :- ON_WM_NCHITTEST() – which was compiling quite okay in VC++ 6 (and VC++ 7.1) suddenly throws this strange error message. error C2440: ‘static_cast’ : cannot convert from ‘UINT (__thiscall CPocket::* )(CPoint)’ to ‘LRESULT (__thiscall CWnd::* )(CPoint)’ And it also has a suggestion to fix [...]

[Read more →]

Tags: C++ · VC++ 2005

Issue with member function pointers and a feature wish

September 16th, 2005 · 1 Comment

I’ve run into more issues than I had expected – here’s another one. Pointers to member functions now require a fully qualified name and you also need to use the & operator. It’s not a big deal really, but if your code uses pointers to members in several places, it’s a bit of a task [...]

[Read more →]

Tags: C++ · VC++ 2005

No more defaulting to int

September 15th, 2005 · 4 Comments

Holy cow! Another one that’s probably going to be a pain in the neck (I am insistent on keeping this blog child-safe which is why I keep using names of the wrong parts of the body as you may have observed). static bBusy = 0; //error C4430: missing type specifier – int assumed. That won’t [...]

[Read more →]

Tags: C++ · VC++ 2005

Scope of for-loop variables

September 15th, 2005 · 6 Comments

I am porting some VC++ 6 code to VC++ 2005 and one major pain in the neck is the for-loop variable scope. The /Zc:forScope compiler option is on by default in VC++ 2005 and I believe it was off by default in VC++ 2003 (though people were advised to turn it on). So, code such [...]

[Read more →]

Tags: C++ · VC++ 2005

From Toronto

September 4th, 2005 · 17 Comments

Okay, after some Visa delays, hurried packing and travelling, Smitha and I are in Toronto now. We haven’t fully settled down yet but it’s going to take time and we both know that too. Toronto is pretty big – specially for me, coming from Trivandrum as I am, and it’s quite similar to the US [...]

[Read more →]

Tags: Toronto