WebSafe 3.7stackoverflow.com
|
|
🏠
Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey
Jonathan Potter's user avatar
Jonathan Potter's user avatar
Jonathan Potter's user avatar
Jonathan Potter
  • Member for 15 years, 3 months
  • Last seen this week

Stats

37,484
reputation
2.0m
reached
932
answers
13
questions
Loading…

About

Win32 / C++ developer. (i.e. a dinosaur :)

I answer questions mainly in the winapi tag (which made it a hard slog to 20k let me tell you!)

I'm the main developer of a file manager (yes, there are alternatives to Explorer!) written in 100% C++/Win32 (no framework). Feel free to check it out at my website link.

Win32 tips based on often-asked questions:

  • Don't call GetLastError() unless a function actually fails. If CreateFile doesn't return ERROR_INVALID_HANDLE, the result of GetLastError() is meaningless.
  • Don't mix Ansi and Unicode strings. If you're getting an error passing a char* pointer to a function like CreateFile, casting it to (LPWSTR) isn't going to help.
  • more to come...
4
gold badges
73
silver badges
86
bronze badges
1,887
Score
602
Posts
64
Posts %
1,873
Score
636
Posts
67
Posts %
584
Score
182
Posts
19
Posts %
335
Score
124
Posts
13
Posts %
184
Score
58
Posts
6
Posts %
86
Score
30
Posts
3
Posts %