Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Coming Up "Short" on Result
Coming Up "Short" on Result [message #446730] Wed, 01 December 2004 19:27 Go to next message
Eclipse UserFriend
Originally posted by: pyth7.comcast.net

Hi all,
I am having problems accessing the properties of ActiveX Object
(VRML plugin browser) through the swt classes
OLEControlSite and OLEAutomation:

cortonaSite = new OleControlSite(frame, SWT.NONE, "Cortona.Control.1");
cortonaAuto = new OleAutomation(cortonaSite);
cortonaSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);

Here is the error being thrown from the above snippet of code:
createContents()
org.eclipse.swt.SWTException: Failed to create Ole Client. result =
-2147418113
at org.eclipse.swt.ole.win32.OLE.error(OLE.java:302) at
org.eclipse.swt.ole.win32.OleControlSite.<init>(OleControlSite.java:1
00)
at AppGraph.createContents(AppGraph.java:39)
at org.eclipse.jface.window.Window.create(Window.java:356)
at org.eclipse.jface.window.Window.open(Window.java:661)
at AppGraphT.run(AppGraphT.java:20)

I looked at the OLEControlSite class and know that
the "result" variant has to be 0 and not -2147418113
for it to continue.
On further investigation I discovered an interesting
relationship between difference of the result and the
maximum negative range of the int type:

-2,147,483,648
-2,147,418.113
-----------------
65,535
This figure is the total range of a 16 bit short type:
-32,768 to 32,767
The distant between these two figures is 65,535 units.

For the moment I am stuck, any ideas on where to go from
here to stop coming up "short" ?

thanx
Russ Kinter
Re: Coming Up "Short" on Result [message #446731 is a reply to message #446730] Wed, 01 December 2004 19:41 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Your error is:

0x8000FFFF -2147418113 Catastrophic failure

I am afraid I don't know anything about the Cortona activeX control.

Try inserting the activeX control into Microsoft Word and see if you succeed
(Insert -> Object - select Cortona from the list). This is a good litmus
test of whether the activeX control is correctly installed for embedding.

"Russ Kinter" <pyth7@comcast.net> wrote in message
news:col5v9$2g6$1@www.eclipse.org...
> Hi all,
> I am having problems accessing the properties of ActiveX Object
> (VRML plugin browser) through the swt classes OLEControlSite and
> OLEAutomation:
>
> cortonaSite = new OleControlSite(frame, SWT.NONE, "Cortona.Control.1");
> cortonaAuto = new OleAutomation(cortonaSite);
> cortonaSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);
>
> Here is the error being thrown from the above snippet of code:
> createContents()
> org.eclipse.swt.SWTException: Failed to create Ole Client. result
> = -2147418113
> at org.eclipse.swt.ole.win32.OLE.error(OLE.java:302) at
> org.eclipse.swt.ole.win32.OleControlSite.<init>(OleControlSite.java:1
> 00)
> at AppGraph.createContents(AppGraph.java:39)
> at org.eclipse.jface.window.Window.create(Window.java:356)
> at org.eclipse.jface.window.Window.open(Window.java:661)
> at AppGraphT.run(AppGraphT.java:20)
>
> I looked at the OLEControlSite class and know that
> the "result" variant has to be 0 and not -2147418113
> for it to continue.
> On further investigation I discovered an interesting relationship between
> difference of the result and the maximum negative range of the int type:
>
> -2,147,483,648
> -2,147,418.113
> -----------------
> 65,535
> This figure is the total range of a 16 bit short type:
> -32,768 to 32,767
> The distant between these two figures is 65,535 units.
>
> For the moment I am stuck, any ideas on where to go from
> here to stop coming up "short" ?
>
> thanx
> Russ Kinter
>
>
>
>
>
>
>
Previous Topic:Listing all the running processes in WIndows...
Next Topic:Disposing of resources
Goto Forum:
  


Current Time: Mon Oct 19 16:42:12 GMT 2020

Powered by FUDForum. Page generated in 0.01859 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top