Bug 520628 - TO support OLE automation for passport.exe from rocket software
Summary: TO support OLE automation for passport.exe from rocket software
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.8   Edit
Hardware: PC Windows 10
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-07 10:27 EDT by G Nikam CLA
Modified: 2017-08-07 10:27 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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;
		}