VirtualBox

Ignore:
Timestamp:
Oct 31, 2024 2:37:43 PM (3 months ago)
Author:
vboxsync
Message:

VBox/com/defs.h,Main/VirtualBoxErrorInfoImpl.h: Use uuidof(iface) instead of IID_##iface on windows to get interface IDs in VBOX_SCRIPTABLE_IMPL and friends to avoid trouble with IEventSource clashing with an interface known to Windows SDK's Uuid.lib. The library reordering in r165553 triggered this issue. jiraref:VBP-1253

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/VirtualBoxErrorInfoImpl.h

    r106061 r106809  
    8989
    9090    // IDispatch forwarding - 3am hack.
    91     typedef IDispatchImpl<IVirtualBoxErrorInfo, &IID_IVirtualBoxErrorInfo, &LIBID_VirtualBox, kTypeLibraryMajorVersion, kTypeLibraryMinorVersion> idi;
     91    // 2024-10-31 bird: Match com/defs.h __uuidof() workaround for IID_IEventSource conflict with Uuid.lib.
     92    typedef IDispatchImpl<IVirtualBoxErrorInfo, /*&IID_IVirtualBoxErrorInfo*/ &__uuidof(IVirtualBoxErrorInfo),
     93                          &LIBID_VirtualBox, kTypeLibraryMajorVersion, kTypeLibraryMinorVersion> idi;
    9294
    9395    STDMETHOD(GetTypeInfoCount)(UINT *pcInfo)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette