#include "wx/setup.h"
-#if wxUSE_DRAG_AND_DROP
+#if wxUSE_OLE && wxUSE_DRAG_AND_DROP
#include "wx/log.h"
#include "wx/dnd.h"
#include <windows.h>
-#ifdef wxUSE_NORLANDER_HEADERS
+#if wxUSE_NORLANDER_HEADERS
#include <ole2.h>
#endif
}
else {
if ( FAILED(hr) ) {
- wxLogApiError("DoDragDrop", hr);
+ wxLogApiError(wxT("DoDragDrop"), hr);
wxLogError(wxT("Drag & drop operation failed."));
}
else {