ImportC GUID compilation problem with some Windows headers

Dave P. dave287091 at gmail.com
Thu Mar 21 22:33:17 UTC 2024


On Thursday, 21 March 2024 at 18:19:58 UTC, Carl Sturtivant wrote:
> On Thursday, 21 March 2024 at 00:06:56 UTC, Carl Sturtivant 
> wrote:
>> ```C
>> EXTERN_GUID(IID_IBlahBlahBlah, 0xabcdef12, 0x11d2, 0xab3a, 
>> 0xc0, 0x4f, [...] );
>> ```
>
> Has anyone successfully compiled an EXTERN_GUID declaration 
> like this in a Windows header with ImportC using some C macro 
> trickery for example?

I filed a bug for this: 
https://issues.dlang.org/show_bug.cgi?id=24447

I haven’t tried on  a windows box and this is just from me 
grepping through header files, but maybe try to `#define 
EXTERN_C` as nothing in the meantime?


More information about the Digitalmars-d-learn mailing list