Mike wrote:
Tried that.
But windef.h then requires tchar.h and wtypes.h.
No, it doesn't. You need to give out more details of what you're trying to compile.
error: 'IID' does not name a type
windef.h doesn't mention IID. It's quite possible that this error is coming from your source file instead of windef.h. If that's the case then you'll need to include guiddef.h, but all of the COM header files, such as wtypes.h already do this.