Use "wx" prefix for the GUIDs we (re)define in wxMSW code.
CLSID_AutoComplete became ambiguous with MinGW because it does define it in its shlguid.h header (although MSVC/Platform SDK does not define this one) so use a "wx" prefix for it to avoid ambiguity. Also use the same prefix for the IID_IAutoCompleteDropDown value we define for consistency. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -84,10 +84,10 @@ public:
|
|||||||
virtual HRESULT wxSTDCALL ResetEnumerator() = 0;
|
virtual HRESULT wxSTDCALL ResetEnumerator() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
DEFINE_GUID(IID_IAutoCompleteDropDown,
|
DEFINE_GUID(wxIID_IAutoCompleteDropDown,
|
||||||
0x3cd141f4, 0x3c6a, 0x11d2, 0xbc, 0xaa, 0x00, 0xc0, 0x4f, 0xd9, 0x29, 0xdb);
|
0x3cd141f4, 0x3c6a, 0x11d2, 0xbc, 0xaa, 0x00, 0xc0, 0x4f, 0xd9, 0x29, 0xdb);
|
||||||
|
|
||||||
DEFINE_GUID(CLSID_AutoComplete,
|
DEFINE_GUID(wxCLSID_AutoComplete,
|
||||||
0x00bb2763, 0x6a77, 0x11d0, 0xa5, 0x35, 0x00, 0xc0, 0x4f, 0xd7, 0xd0, 0x62);
|
0x00bb2763, 0x6a77, 0x11d0, 0xa5, 0x35, 0x00, 0xc0, 0x4f, 0xd7, 0xd0, 0x62);
|
||||||
|
|
||||||
// Small helper class which can be used to ensure thread safety even when
|
// Small helper class which can be used to ensure thread safety even when
|
||||||
@@ -363,7 +363,7 @@ public:
|
|||||||
// apparently.
|
// apparently.
|
||||||
HRESULT hr = CoCreateInstance
|
HRESULT hr = CoCreateInstance
|
||||||
(
|
(
|
||||||
CLSID_AutoComplete,
|
wxCLSID_AutoComplete,
|
||||||
NULL,
|
NULL,
|
||||||
CLSCTX_INPROC_SERVER,
|
CLSCTX_INPROC_SERVER,
|
||||||
IID_IAutoComplete,
|
IID_IAutoComplete,
|
||||||
@@ -398,7 +398,7 @@ public:
|
|||||||
// provided IAutoComplete always implements IAutoCompleteDropDown too.
|
// provided IAutoComplete always implements IAutoCompleteDropDown too.
|
||||||
hr = m_autoComplete->QueryInterface
|
hr = m_autoComplete->QueryInterface
|
||||||
(
|
(
|
||||||
IID_IAutoCompleteDropDown,
|
wxIID_IAutoCompleteDropDown,
|
||||||
reinterpret_cast<void **>(&m_autoCompleteDropDown)
|
reinterpret_cast<void **>(&m_autoCompleteDropDown)
|
||||||
);
|
);
|
||||||
if ( FAILED(hr) )
|
if ( FAILED(hr) )
|
||||||
|
Reference in New Issue
Block a user