Passport via OLE automation [message #1770029] |
Mon, 07 August 2017 11:38  |
Eclipse User |
|
|
|
This is my code:-
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;
}
--------------------------------------------------end of code ---------------------------------
I am getting below error :-
Exception in thread "main" org.eclipse.swt.SWTException: Failed to create Ole Client. result = -2147221164
at org.eclipse.swt.ole.win32.OLE.error(Unknown Source)
at org.eclipse.swt.ole.win32.OleClientSite.<init>(Unknown Source)
Can someone help me to fix it?
|
|
|
|
Powered by
FUDForum. Page generated in 0.32101 seconds