Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Failed to create Ole Client. result = -2147221008
Failed to create Ole Client. result = -2147221008 [message #454480] Thu, 21 April 2005 23:59 Go to next message
Eclipse UserFriend
Originally posted by: Abhinav.Vohra.siebel.com

All
I'm trying to create an activex control in a thread other than the one
running eclipse. Specifically, I create a new shell in a new thread (and
create a new display) and try to instantiate an activex control using
the ole32 libs. When it trys to create the OleControlSite it fails with
the following error Failed to create Ole Client. result = -2147221008.

-2147221008 translates to Coinitialize hasnt been called.

What am I missing?

Abhinav
Re: Failed to create Ole Client. result = -2147221008 [message #454551 is a reply to message #454480] Sun, 24 April 2005 01:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aaa.domain.invalid

Hi,

The only thing I can think of is ...is your control registered using
regsvr32.

-Chhil
Abhinav Vohra wrote:
> All
> I'm trying to create an activex control in a thread other than the one
> running eclipse. Specifically, I create a new shell in a new thread (and
> create a new display) and try to instantiate an activex control using
> the ole32 libs. When it trys to create the OleControlSite it fails with
> the following error Failed to create Ole Client. result = -2147221008.
>
> -2147221008 translates to Coinitialize hasnt been called.
>
> What am I missing?
>
> Abhinav
Re: Failed to create Ole Client. result = -2147221008 [message #454687 is a reply to message #454480] Wed, 27 April 2005 13:52 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
This was not support in 3.0. In 3.0, OleInitilialize was only called on the
first thread in which the OLE classes were loaded. In 3.1, however, this
should work.

"Abhinav Vohra" <Abhinav.Vohra@siebel.com> wrote in message
news:d49erj$le9$1@news.eclipse.org...
> All
> I'm trying to create an activex control in a thread other than the one
> running eclipse. Specifically, I create a new shell in a new thread (and
> create a new display) and try to instantiate an activex control using the
> ole32 libs. When it trys to create the OleControlSite it fails with the
> following error Failed to create Ole Client. result = -2147221008.
>
> -2147221008 translates to Coinitialize hasnt been called.
>
> What am I missing?
>
> Abhinav
Previous Topic:System is running out of GDI-handles
Next Topic:TreeColumn.setMoveable() ?
Goto Forum:
  


Current Time: Fri Apr 19 01:46:23 GMT 2024

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

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

Back to the top