
It is saying there is not such member 'GetObjectW' for ObjectGroup when CLEARLY the only method being called is 'GetObject'
What.
Posted 16 October 2011 - 09:47 PM
#undef GetObject // OMG TEH WIN32 D:<
Posted 16 October 2011 - 10:39 PM
Posted 16 October 2011 - 11:42 PM
Did some research. Turns out the library I was using includes windows and it DOES in fact have a method named GetObject.
Using the quickfix before usage made it work. Thanks a bunch.
But WHY does Win32 DO that?? That's so messed up!
Posted 18 October 2011 - 10:20 AM
at the time, the dominant language was C, not C++, so function overloading wasn't an option. They could have just made everyone call the W version directly, but then people would have whined about how dumb all the API names were (like you sometimes see for the unicode C-runtime functions, e.g. wcslen). Plus Microsoft was already fighting an uphill battle to get people to accept that Unicode was a good thing rather than a waste of memory (ASCII should be good enough for anybody!) And even the people who were willing to accept Unicode didn't want to have to go through their entire program changing function names - porting to NT (from Win16) was enough work already. Plus if they did that then it wouldn't compile for 16-bit anymore and that was where the real market was.They didn't consider the consequences of their decision hard enough at the time.
Posted 19 October 2011 - 05:42 AM