Skip to main content



      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 19: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] Sat, 23 April 2005 21: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 09:52 Go to previous message
Eclipse UserFriend
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: Wed Jul 02 16:28:57 EDT 2025

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

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

Back to the top