# HG changeset patch # User Frank Benoit # Date 1225746886 -3600 # Node ID a3b84f877e6360db220372c3759f11d8154d3ea9 # Parent da968414c383e45bdd1ea30da85d55219bb8d6ea Fix compile errors diff -r da968414c383 -r a3b84f877e63 dsss.conf --- a/dsss.conf Mon Nov 03 21:58:40 2008 +0100 +++ b/dsss.conf Mon Nov 03 22:14:46 2008 +0100 @@ -1,5 +1,6 @@ [dwt] +buildflags+=-Jres type=library diff -r da968414c383 -r a3b84f877e63 dwt/dnd/Transfer.d --- a/dwt/dnd/Transfer.d Mon Nov 03 21:58:40 2008 +0100 +++ b/dwt/dnd/Transfer.d Mon Nov 03 22:14:46 2008 +0100 @@ -14,9 +14,12 @@ import dwt.internal.win32.OS; +import dwt.internal.ole.win32.COM; import dwt.dnd.TransferData; import dwt.dwthelper.utils; +import dwt.internal.ole.win32.OBJIDL; +static import tango.core.Thread; /** * Transfer provides a mechanism for converting between a java @@ -44,15 +47,15 @@ * data, use PeekMessage() to enable cross thread * message sends. */ -int getData(IDataObject dataObject, FORMATETC pFormatetc, STGMEDIUM pmedium) { +int getData(IDataObject dataObject, FORMATETC* pFormatetc, STGMEDIUM* pmedium) { if (dataObject.GetData(pFormatetc, pmedium) is COM.S_OK) return COM.S_OK; - try {Thread.sleep(0.050);} catch (Exception t) {} + try {tango.core.Thread.Thread.sleep(0.050);} catch (Exception t) {} int result = dataObject.GetData(pFormatetc, pmedium); int retryCount = 0; while (result !is COM.S_OK && retryCount++ < RETRY_LIMIT) { - MSG msg = new MSG(); - OS.PeekMessage(msg, 0, 0, 0, OS.PM_NOREMOVE | OS.PM_NOYIELD); - try {Thread.sleep(0.050);} catch (Exception t) {} + MSG msg; + OS.PeekMessage(&msg, null, 0, 0, OS.PM_NOREMOVE | OS.PM_NOYIELD); + try {tango.core.Thread.Thread.sleep(0.050);} catch (Exception t) {} result = dataObject.GetData(pFormatetc, pmedium); } return result;