void Nish(char* szBlog);

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

void Nish(char* szBlog); header image 4

Entries from May 2004

The significance of the C# event keyword

May 25th, 2004 · 7 Comments

Andrew Phillips asked on my CodeProject article Events and event handling in C# forum whether delegates alone aren’t sufficient for event handling and what the purpose of the event keyword is. Here is his post in it’s entirety:- OK, I understand delegates but there is a basic thing about events that no books, articles etc [...]

[Read more →]

Tags: CLR/.NET BCL

RCW issue when returning a BSTR

May 22nd, 2004 · 9 Comments

[Edit - Jan 26 2005]Unfortunately, the information in this entry is incorrect. See this later entry for details.[/Edit] I was trying out some RCW stuff (between VC++ 7.1 unmanaged and C#) and faced this little problem of a BSTR that could not be freed at all. I’ll explain the issue to you :- Let’s say [...]

[Read more →]

Tags: CLR/.NET BCL · Win32/MFC

Down with viral fever

May 19th, 2004 · 8 Comments

Just in case anyone was wondering why my blog is not being updated, I’ve been down with viral fever since Friday the 14th (just escaped by 1 day eh?) and though I’ve still been able to edit and post articles on CodeProject, I haven’t felt strong enough to try out new stuff which is when [...]

[Read more →]

Tags: General

A simple C# function to add context menu items in Explorer

May 10th, 2004 · 25 Comments

I am currently working on a simple C# Windows Forms application to help me with editing/authoring articles for CodeProject, that basically strips unwanted files off zip files, and I wanted to associate an Explorer context menu entry with zip files that’d open the zip in my application. Of course, this was a mere matter of [...]

[Read more →]

Tags: CLR/.NET BCL

Jagged arrays in C++/CLI

May 5th, 2004 · 6 Comments

PaulW asked on my CP article’s forum whether C++/CLI has support for jagged arrays. In the old syntax, there was no direct syntactical support for jagged arrays and we were left with the rather uneasy option of simulating jagged arrays through contrived code. My first answer to him was that there wasn’t direct support for [...]

[Read more →]

Tags: C++/CLI