Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 12661 Details for
Bug 68194
[OLE] OLE components w/o visual representation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
OleObjectSite.java
(text/plain), 1.63 KB, created by
Max Stepanov
on 2004-06-22 12:40:44 EDT
(
hide
)
Description:
OleObjectSite.java
Filename:
MIME Type:
Creator:
Max Stepanov
Created:
2004-06-22 12:40:44 EDT
Size:
1.63 KB
patch
obsolete
>/******************************************************************************* > * Copyright (c) 2000, 2003 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Common Public License v1.0 > * which accompanies this distribution, and is available at > * http://www.eclipse.org/legal/cpl-v10.html > * > * Contributors: > * IBM Corporation - initial API and implementation > *******************************************************************************/ >package org.eclipse.swt.internal.ole.win32; > >import org.eclipse.swt.SWTException; >import org.eclipse.swt.ole.win32.OLE; >import org.eclipse.swt.ole.win32.OleClientSite; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.internal.ole.win32.COM; >import org.eclipse.swt.internal.ole.win32.IUnknown; > >public final class OleObjectSite extends OleClientSite { > /** > * @param parent > * @param style > * @param progId > */ > public OleObjectSite(Composite parent, int style, String progId) { > super(parent, style); > > try { > appClsid = getClassID(progId); > if (appClsid == null) > OLE.error(OLE.ERROR_INVALID_CLASSID); > > > // Create ole object with storage object > int[] ppvObject = new int[1]; > int result = COM.CoCreateInstance(appClsid, 0, COM.CLSCTX_INPROC_SERVER | COM.CLSCTX_INPROC_HANDLER, COM.IIDIUnknown, ppvObject); > if (result != COM.S_OK) > OLE.error(OLE.ERROR_CANNOT_CREATE_OBJECT, result); > > objIUnknown = new IUnknown(ppvObject[0]); > > > } catch (SWTException e) { > dispose(); > disposeCOMInterfaces(); > throw e; > } > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 68194
: 12661 |
54838
|
143762
|
143763
|
144248