From: Mark Hahn
Should I throw an exception when I see an ascii value
of zero? This is illegal in C text, but is it legal in unicode
in general?
Don't throw an exception. Zero is a legal and useful character in C text:
const char szEmbeddedNulls[] = "One\0Two\0Three\0";
That's a character array with embedded \0 characters and terminated by a
pair of \0 characters. Strings like this are used in the DOS/Windows
environment and in the filter string for a GetOpenFileName or
GetSaveFileName call.
-Mike
p.s. Sorry I've been away, especially after bringing up the topic of code
blocks a week or so ago. Meant to get back and follow up on that, will do it
soon...