Re:Fibers: An Elegant Windows API
by maxxxxx on Friday March 29, 2019 @09:45AM
(#19521603)
Totally agree. I worked for a while with pure Win32. Once you get the hang of it it’s quite consistent and pretty well thought out. Also agree about the documentation. Seems MS is determined to make it worse every year, break more links and provide less useful information. The old MSDN CDs were a piece of beauty.
[ Parent
| on HN ]
Re:Fibers: An Elegant Windows API
by scarface74 on Friday March 29, 2019 @11:31AM
(#19522520)
Consistency?
Let’s start with strings...
- the standard null terminated single byte char C string
- the double wide null terminated C string required for dome frameworks - especially Windows CE
- the COM BSTR where the first two bytes are the length
- the ATL bstr_t
- CString that isn’t a null terminated C string
- of course the C++ string class. I’m not sure if this is ever used by the Win32 APIs
I’m sure I’m missing one.
TCHAR probably counts because, even though it's just a typedef for char or wchar_t, it has its own t-prefixed APIs and mental overhead of having to write code that can work with either character size.
Re:Fibers: An Elegant Windows API
by Impossible on Friday March 29, 2019 @12:31PM
(#19523124)
If you count various flavors of UWP (C++/CX, C++/WinRT, WRL) you can add std::wstring and Platform::String^
Don't forget HSTRING, which Platform::String^ is built on. They added those two in Windows 8 because there was no one standard string type. (Not joking.)
Re:Fibers: An Elegant Windows API
by xpaulbettsx on Friday March 29, 2019 @08:16PM
(#19526703)
UNICODE_STRING too - https://msdn.microsoft.com/en-us/windows/desktop/ff564879
Re:Fibers: An Elegant Windows API
by scarface74 on Friday March 29, 2019 @08:38PM
(#19526797)
So there is also the OEM_STRING and the ANSI_STRING