Mark various OLE helper functions as DLL exported so they can be used from other libraries.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
// ============================================================================
|
||||
|
||||
// return true if the iid is in the array
|
||||
bool IsIidFromList(REFIID riid, const IID *aIids[], size_t nCount)
|
||||
WXDLLEXPORT bool IsIidFromList(REFIID riid, const IID *aIids[], size_t nCount)
|
||||
{
|
||||
for ( size_t i = 0; i < nCount; i++ ) {
|
||||
if ( riid == *aIids[i] )
|
||||
@@ -512,18 +512,18 @@ static wxString GetIidName(REFIID riid)
|
||||
#endif
|
||||
}
|
||||
|
||||
void wxLogQueryInterface(const wxChar *szInterface, REFIID riid)
|
||||
WXDLLEXPORT void wxLogQueryInterface(const wxChar *szInterface, REFIID riid)
|
||||
{
|
||||
wxLogTrace(wxTRACE_OleCalls, wxT("%s::QueryInterface (iid = %s)"),
|
||||
szInterface, GetIidName(riid).c_str());
|
||||
}
|
||||
|
||||
void wxLogAddRef(const wxChar *szInterface, ULONG cRef)
|
||||
WXDLLEXPORT void wxLogAddRef(const wxChar *szInterface, ULONG cRef)
|
||||
{
|
||||
wxLogTrace(wxTRACE_OleCalls, wxT("After %s::AddRef: m_cRef = %d"), szInterface, cRef + 1);
|
||||
}
|
||||
|
||||
void wxLogRelease(const wxChar *szInterface, ULONG cRef)
|
||||
WXDLLEXPORT void wxLogRelease(const wxChar *szInterface, ULONG cRef)
|
||||
{
|
||||
wxLogTrace(wxTRACE_OleCalls, wxT("After %s::Release: m_cRef = %d"), szInterface, cRef - 1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user