ParallelGraphics Forums
Cortona VRML Client
You are here:
[Forums]
::
[Browsers]
::
[Cortona VRML Client]
All forums
How to use forums
Favorites
Services
Registration
Registration
Forgot your password?
Help
Help
Support
Quick search
Subscribe to newsletters
email:
password:
 
Browsers
-
Cortona VRML Client
[reply]
[back to forum]
[new message]
[all forums]
Subject:
Eclipse SWT Toolkit Error
Sender:
pyth7@verizon.net
12.09.06 14:19
Hi All,
I think there is a some problem with the way Cortona.Cortona.1 is registered as ActiveX Object.
I get the error at the end of this post when I try to obtain "Cortona.Cortona.1" in java using the Eclipse swt toolkit.
I should add that when I substitute
"bsContact.bsContact.1" for "Cortona.Cortona.1"
The Java standalone app calls up Contact just fine.
It also can call up WorldView, so I don't believe the
Cortona problem is on my end.
Here is Java code with SWT calls:
public class AppGraph extends ApplicationWindow {
public OleControlSite cortSite;
public OleAutomation cortAuto;
public Display display;
public boolean fullscreen = false;
public String startURL = "C:\\VRML\\root.wrl";
public AppGraph(Display disp) {
super(null);
this.display = disp;
this.addStatusLine();
}
protected Control createContents(org.eclipse.swt.widgets.Composite parent)
{
System.out.println("createContents()");
//Shell shell = parent.getShell();
Shell shell = this.getShell();
shell.setText("VRML Viewer");
shell.setSize(640, 480);
OleFrame frame = new OleFrame(shell, SWT.NONE);
//substituting either "bsContact.bsContact1" or
// "WorldView.WorldView VrmlViewer.1"
// for "Cortona.Cortona.1" and it works fine.
cortSite = new OleControlSite(frame, SWT.NONE, "Cortona.Cortona.1");
cortAuto = new OleAutomation(cortSite);
blaxxunSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);
ComCall(cortAuto, 0x1, new Variant(startURL));
return frame;
}
The Java error:
C:\eclipseVRML\java_src_bxx>java -classpath SWTcortona.zip AppLoader
createContents()
org.eclipse.swt.SWTException: Class ID not found in registry result = -21472
5
at org.eclipse.swt.ole.win32.OLE.error(OLE.java:317)
at org.eclipse.swt.ole.win32.OleClientSite.getClassID(OleClientSite.
:649)
at org.eclipse.swt.ole.win32.OleControlSite.<init>(OleControlSite.ja
7)
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:19)
thanks
Russ Kinter
[reply]
[back to forum]
[new message]
[all forums]
Eclipse SWT Toolkit Error
/
pyth7@verizon.net
/ 12.09.06 14:19
Re: Eclipse SWT Toolkit Error
/
degor aka Installation Guru
/ 13.09.06 02:02
Re: Eclipse SWT Toolkit Error
/
pyth7@verizon.net
/ 13.09.06 13:40
Re: Eclipse SWT Toolkit Error
/
degor aka Installation Guru
/ 18.09.06 07:47
Messages in thread:
4
[reply]
[back to forum]
[new message]
[all forums]
© 1998-2007
ParallelGraphics
. All rights reserved.
Terms of use
.