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 102893 Details for
Bug 234876
[OLE] NPE when loading COM visible .Net WinForms Control
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Sample SWT/Java Code being used.
SwtComTest.java (text/plain), 1.22 KB, created by
Jared Brogni
on 2008-05-30 11:51:30 EDT
(
hide
)
Description:
Sample SWT/Java Code being used.
Filename:
MIME Type:
Creator:
Jared Brogni
Created:
2008-05-30 11:51:30 EDT
Size:
1.22 KB
patch
obsolete
>package com.lawson.ComTest; > >import java.io.File; > >import org.eclipse.swt.SWT; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.ole.win32.OLE; >import org.eclipse.swt.ole.win32.OleAutomation; >import org.eclipse.swt.ole.win32.OleClientSite; >import org.eclipse.swt.ole.win32.OleControlSite; >import org.eclipse.swt.ole.win32.OleEvent; >import org.eclipse.swt.ole.win32.OleFrame; >import org.eclipse.swt.ole.win32.OleListener; >import org.eclipse.swt.ole.win32.Variant; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Label; >import org.eclipse.swt.widgets.Shell; > > >public class SwtComTest >{ > > /** > * @param args > */ > public static void main(String[] args) > { > Display display = new Display(); > Shell shell = new Shell(display); > shell.setLayout( new GridLayout()); > shell.setMinimumSize(200, 100); > > OleFrame frame = new OleFrame(shell, SWT.NONE); > frame.setSize(600, 200); > OleControlSite controlSite = new OleControlSite(frame, SWT.NONE, args[0]); > int s = controlSite.doVerb(OLE.OLEIVERB_PRIMARY); > > shell.pack(); > shell.open(); > while( !shell.isDisposed()) > { > if(!display.readAndDispatch()) > display.sleep(); > } > display.dispose(); > } >}
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 234876
: 102893