Hacker News new | ask | show | jobs
by carl_sandland 1505 days ago
lol i thought you meant that bizzare c/c++ windows variable naming pattern.

lpwszSomeName

1 comments

I remember the lpsz vars: long pointer to string zero terminated. What's the W for this? I'm guessing Simonyi's Hungarian Notation was for early C compilers that didn't have function prototype decls? Younger HNers may not remember early C compilers where function declarations just declared the return type, not the parameters.
I think it's a pointer to a wide string with 16-bit chars, but it's been a while since I last came across Hungarian notation. I have been intending to reread "Writing Solid Code" one of these days, though.