Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/dnd/FileTransfer.d @ 43:b98647bc0aef
swt win compiles for d2+phobos
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 25 Mar 2009 17:08:05 +0100 |
parents | d46287db17ed |
children |
comparison
equal
deleted
inserted
replaced
42:63aa48e5430f | 43:b98647bc0aef |
---|---|
90 StringBuffer allFiles = new StringBuffer(); | 90 StringBuffer allFiles = new StringBuffer(); |
91 for (int i = 0; i < fileNames.length; i++) { | 91 for (int i = 0; i < fileNames.length; i++) { |
92 allFiles.append(fileNames[i]); | 92 allFiles.append(fileNames[i]); |
93 allFiles.append(CF_HDROP_SEPARATOR); // each name is null terminated | 93 allFiles.append(CF_HDROP_SEPARATOR); // each name is null terminated |
94 } | 94 } |
95 TCHAR[] buffer = StrToTCHARs(0, allFiles.toString(), true); // there is an extra null terminator at the very end | 95 StringT buffer = StrToTCHARs(0, allFiles.toString(), true); // there is an extra null terminator at the very end |
96 DROPFILES dropfiles; | 96 DROPFILES dropfiles; |
97 dropfiles.pFiles = DROPFILES.sizeof; | 97 dropfiles.pFiles = DROPFILES.sizeof; |
98 dropfiles.pt.x = dropfiles.pt.y = 0; | 98 dropfiles.pt.x = dropfiles.pt.y = 0; |
99 dropfiles.fNC = 0; | 99 dropfiles.fNC = 0; |
100 dropfiles.fWide = OS.IsUnicode ? 1 : 0; | 100 dropfiles.fWide = OS.IsUnicode ? 1 : 0; |