X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94113cc55572d23b2c86b9140543d32858c1eee6..70fc30ae82d974d2e6710583cc1d34b98c4b3c5f:/src/msw/ole/oleutils.cpp diff --git a/src/msw/ole/oleutils.cpp b/src/msw/ole/oleutils.cpp index 17b768fa2b..058f4afd87 100644 --- a/src/msw/ole/oleutils.cpp +++ b/src/msw/ole/oleutils.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: ole/oleutils.cpp +// Name: src/msw/ole/oleutils.cpp // Purpose: implementation of OLE helper functions // Author: Vadim Zeitlin // Modified by: @@ -21,14 +21,15 @@ #include "wx/wxprec.h" #if defined(__BORLANDC__) -#pragma hdrstop + #pragma hdrstop #endif -#include "wx/setup.h" -#include "wx/log.h" - #if wxUSE_OLE +#ifndef WX_PRECOMP + #include "wx/log.h" +#endif + #ifndef __CYGWIN10__ #include "wx/msw/private.h" @@ -67,7 +68,7 @@ bool IsIidFromList(REFIID riid, const IID *aIids[], size_t nCount) return false; } -BSTR wxConvertStringToOle(const wxString& str) +WXDLLEXPORT BSTR wxConvertStringToOle(const wxString& str) { /* unsigned int len = strlen((const char*) str); @@ -81,7 +82,7 @@ BSTR wxConvertStringToOle(const wxString& str) return bstr.Get(); } -wxString wxConvertStringFromOle(BSTR bStr) +WXDLLEXPORT wxString wxConvertStringFromOle(BSTR bStr) { #if wxUSE_UNICODE wxString str(bStr); @@ -109,9 +110,9 @@ wxBasicString::wxBasicString(const char *sz) wxBasicString::wxBasicString(const wxString& str) { #if wxUSE_UNICODE - m_wzBuf = new OLECHAR[str.Length() + 1]; - memcpy(m_wzBuf, str.c_str(), str.Length()*2); - m_wzBuf[str.Length()] = L'\0'; + m_wzBuf = new OLECHAR[str.length() + 1]; + memcpy(m_wzBuf, str.c_str(), str.length()*2); + m_wzBuf[str.length()] = L'\0'; #else Init(str.c_str()); #endif @@ -306,4 +307,3 @@ void wxLogRelease(const char *szInterface, ULONG cRef) #endif // wxUSE_OLE -