Jonathan Potter
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. IfCreateFile
doesn't returnERROR_INVALID_HANDLE
, the result ofGetLastError()
is meaningless. - Don't mix Ansi and Unicode strings. If you're getting an error passing a
char*
pointer to a function likeCreateFile
, casting it to(LPWSTR)
isn't going to help. - more to come...
-
Melbourne, Australia
-
Member for 10 years, 3 months
-
20 profile views
-
Last seen Feb 17 at 9:42
Communities (19)
Top network posts
- 44 How do I call SetWindowLong() in the 64-bit versions of Windows?
- 36 Can anyone give me example code of _dupenv_s?
- 25 Getting the child elements in tinyxml2
- 25 How to change Visual Studio's (or any other text/code editor) caret size?
- 24 Why does closing a console that was started with AllocConsole cause my whole application to exit? Can I change this behavior?
- 23 std::bind and winsock.h bind confusion
- 15 C++ Calling a function before base-class initialization in the initialization list
- View more network posts →
Keeping a low profile.
This user hasn't posted yet.
Badges (15)
Gold
—
Silver
10
Rarest
Bronze
5
Rarest
-
Oct 11 '15
-
Jul 28 '15
-
Jun 26 '15