[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: Problem with ActiveX
|
SWT currently only supports the CLSCTX_INPROC_HANDLER | CLSCTX_INPROC_SERVER
case. You can enter an enhancement request in bugzilla against Platform SWT
for extending this to CLSCTX_LOCAL_SERVER and CLSCTX_REMOTE_SERVER. This
requires much more than just moving from OleCreate to CoCreateInstance since
it involves dealing with multiple threads and replacing the OleCreate
functionality (CoCreateInstance is only one of the calls made by OleCreate).
You will get a faster response if you can provide some of the required
implementation.
"Paul Mukherjee" <paul_mukherjee@xxxxxxxxxxx> wrote in message
news:b813lu$e6v$1@xxxxxxxxxxxxxxxx
> I'm using CLSCTX_ALL - I got the same error with just
> CLSCTX_INPROC_HANDLER | CLSCTX_INPROC_SERVER.
>
> Paul
>
>
> Veronika Irvine wrote:
>
> > I believe OleCreate calls CoCreateInstance with the parameters
> > CLSCTX_INPROC_HANDLER | CLSCTX_INPROC_SERVER. What parameters did you
use
> > when launching with CoCreateInstance?
> >
> > "Paul Mukherjee" <paul_mukherjee@xxxxxxxxxxx> wrote in message
> > news:oprnxjf8ldrplrf9@xxxxxxxxxxxx
> >> Hi,
> >>
> >> I am trying to start Microsoft Visio as an ActiveX control from within
> >> Eclipse.
> >> When I try doing this by creating an instance of OleControlSite, I get
an
> >> error
> >> message which translates to "Class not registered". On the other hand,
I
> >> have no problem creating an instance of a Visio Drawing as an OLE
> > Document.
> >>
> >> Experimenting with Visual C++, I am able to create the ActiveX control
I
> >> want
> >> using CoCreateInstance, but if I use OleCreate, I get the same error
> >> message as
> >> I do via SWT.
> >>
> >> Does anyone have experience with this? Am I trying to use SWT
> >> incorrectly, or is
> >> this a bug in the SWT mapping to COM?
> >>
> >> Thanks,
> >>
> >> Paul
>