#define _win32_winnt 0x0500
Write a function today, use CocreateInstanceex, always not defined when compiling,
It's really anger, it's really anger.
It is not a day or two with VC. It will not be named without a definition of the function name.
Later, I saw the source code directly to Objbase.h, I saw this:
#if (_WIN32_WINNT> = 0x0400) || Defined (_WIN32_DCOM) // DCOM
SHIT, the original, plus #define _win32_winnt 0x0500 is good