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

work on phobosfication
author Frank Benoit <benoit@tionex.de>
date Wed, 25 Mar 2009 11:18:25 +0100
parents 6dd524f61e62
children 0ecb2b338560
comparison
equal deleted inserted replaced
37:46c5f8f56b41 38:2e09b0e6857a
355 // Create a stream on the storage object. 355 // Create a stream on the storage object.
356 // Word does not follow the standard and does not use "CONTENTS" as the name of 356 // Word does not follow the standard and does not use "CONTENTS" as the name of
357 // its primary stream 357 // its primary stream
358 wchar* streamName = StrToWCHARz("CONTENTS"); //$NON-NLS-1$ 358 wchar* streamName = StrToWCHARz("CONTENTS"); //$NON-NLS-1$
359 GUID* wordGUID = getClassID(WORDPROGID); 359 GUID* wordGUID = getClassID(WORDPROGID);
360 if (wordGUID !is null && COM.IsEqualGUID(appClsid, wordGUID)) streamName = "WordDocument"; //$NON-NLS-1$ 360 if (wordGUID !is null && COM.IsEqualGUID(appClsid, wordGUID)) streamName = StrToWCHARz("WordDocument"); //$NON-NLS-1$
361 IStream stream; 361 IStream stream;
362 result = storage.CreateStream(streamName, mode, 0, 0, &stream); // Increments ref count if successful 362 result = storage.CreateStream(streamName, mode, 0, 0, &stream); // Increments ref count if successful
363 if (result !is COM.S_OK) { 363 if (result !is COM.S_OK) {
364 storage.Release(); 364 storage.Release();
365 OLE.error (__FILE__, __LINE__, OLE.ERROR_CANNOT_OPEN_FILE, result); 365 OLE.error (__FILE__, __LINE__, OLE.ERROR_CANNOT_OPEN_FILE, result);