Bug 520628

Summary: TO support OLE automation for passport.exe from rocket software
Product: [Eclipse Project] Platform Reporter: G Nikam <gnikam>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 4.8   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:

Description G Nikam CLA 2017-08-07 10:27:27 EDT
When we try to launch passport via OLE automation, we are getting below error.

Failed to create Ole Client. result = -2147467262
	at org.eclipse.swt.ole.win32.OLE.error(Unknown Source) 



Source code:-

	public static void main(String[] args) {
		//
		//TODO Launch IE to passport URL
		//
		Display display = new Display();
		final Shell shell = new Shell(display);
		shell.setText("Word Example");
		shell.setLayout(new FillLayout());
		try {
			frame = new OleFrame(shell, SWT.NONE);
			clientSite = new OleClientSite(frame, SWT.NONE, "Passport.system");
			clientSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);
			addFileMenu(frame);
		} catch (SWTError e) {
			System.out.println("Unable to open activeX control");
			display.dispose();
			return;
		}