comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/ole/win32/OleControlSite.d @ 38:2e09b0e6857a

work on phobosfication
author Frank Benoit <benoit@tionex.de>
date Wed, 25 Mar 2009 11:18:25 +0100
parents 6dd524f61e62
children b98647bc0aef
comparison
equal deleted inserted replaced
37:46c5f8f56b41 38:2e09b0e6857a
283 */ 283 */
284 public void addEventListener(OleAutomation automation, String eventSinkId, int eventID, OleListener listener) { 284 public void addEventListener(OleAutomation automation, String eventSinkId, int eventID, OleListener listener) {
285 if (listener is null || automation is null || eventSinkId is null) OLE.error (__FILE__, __LINE__, SWT.ERROR_NULL_ARGUMENT); 285 if (listener is null || automation is null || eventSinkId is null) OLE.error (__FILE__, __LINE__, SWT.ERROR_NULL_ARGUMENT);
286 auto address = automation.getAddress(); 286 auto address = automation.getAddress();
287 if (address is null) return; 287 if (address is null) return;
288 wchar[] buffer = StrToWCHARs(0,eventSinkId,true); 288 String16 buffer = StrToWCHARs(0,eventSinkId,true);
289 GUID* guid = new GUID(); 289 GUID* guid = new GUID();
290 if (COM.IIDFromString(buffer.ptr, guid) !is COM.S_OK) return; 290 if (COM.IIDFromString(buffer.ptr, guid) !is COM.S_OK) return;
291 addEventListener(address, guid, eventID, listener); 291 addEventListener(address, guid, eventID, listener);
292 } 292 }
293 293