[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] Accessing Active X dll from SWT giving error. Pls help
|
The value -2147467262 means "No such interface supported". To be hosted
in an OleControlSite you need to support the following interfaces:
IOleObject
IOleInPlaceObject
IOleInPlaceActiveObject
IDataObject
IViewObject2
IPersist/IStorage/IStream/IStreamInit
IRunnableObject
IOleControl
IDispatch
IProvideClassInfo
IClassFactory or IClassFactory2
Do you have all of these?
"Binnoy" <binnoys@xxxxxxxxxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx
09/20/2005 02:52 AM
Please respond to
binnoys and "Eclipse Platform SWT component developers list."
To
"Eclipse Platform SWT component developers list."
<platform-swt-dev@xxxxxxxxxxx>
cc
Subject
[platform-swt-dev] Accessing Active X dll from SWT giving error. Pls help
Hi,
I created an ActiveX dll using VB and registered it in another system
using
regsvr32 d:\\catworks\\Checkyear.dll
But when accessing from SWT application,
controlSite = new OleControlSite(frame, SWT.NONE,
"Checkyear.LeapYear");
the following exception is thrown.
org.eclipse.swt.SWTException: Failed to create Ole Client. result
= -2147467262
at org.eclipse.swt.ole.win32.OLE.error(OLE.java:302)
at
org.eclipse.swt.ole.win32.OleControlSite.<init>(OleControlSite.java:100)
at res.swt.com.Snippet123.main(Snippet123.java:41)
Can anyone just help? Thanks in Advance.
Binnoy.
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev