Pointless 'MIDL_INTERFACE' Macro in winapi?

Posted by nebukadnezzar on Stack Overflow See other posts from Stack Overflow or by nebukadnezzar
Published on 2011-01-11T23:49:38Z Indexed on 2011/01/11 23:53 UTC
Read the original article Hit count: 390

Filed under:
|
|

After browsing some old code, I noticed that some classes are defined in this manner:

MIDL_INTERFACE("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")
Classname: public IUnknown {
    /* classmembers ... */
};

However, the macro MIDL_INTERFACE is defined as:

#define MIDL_INTERFACE(x) struct

in C:/MinGW/include/rpcndr.h (somewhere around line 17). The macro itself is rather obviously entirely pointless, so what's the true purpose of this macro?

© Stack Overflow or respective owner

Related posts about c++

Related posts about winapi