Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Re: Active X and SWT - Failed to create Ole Client error.


You have to know the name of the DLL where the class resides. Then you can use the regsvr32 command to register the dll.

Try using regedit to look up the PROG_ID that you're using. For example "Word.Document" can be found in "My Computer\HKEY_CLASSES_ROOT\Word.Document". You may be able to find out where the dll is located.

Can you run the application outside of SWT? If yes, it may not be a registration problem.

Duong




"Pranay Pramod" <pranay.pramod@xxxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

08/17/2007 01:28 AM

Please respond to
"Eclipse Platform SWT component developers list."        <platform-swt-dev@xxxxxxxxxxx>

To
platform-swt-dev@xxxxxxxxxxx
cc
Subject
[platform-swt-dev] Re: platform-swt-dev Digest, Vol 30, Issue 8





Thanks Duong!

It is probably because of improper registration.
But how do I register the class?
I tried looking for the .ocx control so that I could regsiter it manually but did not find it.


Today's Topics:

  1. Active X and SWT - Failed to create Ole Client    error.
     (Pranay Pramod)
  2. Re: Active X and SWT - Failed to create Ole       Client  error.
     (Duong Nguyen)


----------------------------------------------------------------------

Message: 1
Date: Tue, 14 Aug 2007 16:35:12 -0400
From: "Pranay Pramod" <
pranay.pramod@xxxxxxxxx>
Subject: [platform-swt-dev] Active X and SWT - Failed to create Ole
       Client  error.
To:
platform-swt-dev@xxxxxxxxxxx
Message-ID:
       <
eb4db1b0708141335g13ff9ee5r1e8db796fb766864@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

Hello Everyone,

I had automated a software using its OLE automation Interface support for
OLE clients.
I used Active X support provided in SWT.

Now we are upgrading to a newer version of the software and  facing problem
automating it.

When I replace the older version program_id with the newer version:

OleControlSite controlSite = new OleControlSite(frame, SWT.NONE
,SOFTWAREXYZ_NEW_PROGID);

I get this excption thrown -
org.eclipse.swt.SWTException: Failed to create Ole Client. result =
-2147221164

   which actaully means error- (80040154)    Class not registered

Now what can I conclude out of this?
Why is the class not registered? which class actually is being talked about?


Any help would be appreciated!

Thanks
Pranay
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev/attachments/20070814/98366ff9/attachment.html

------------------------------

Message: 2
Date: Wed, 15 Aug 2007 11:32:34 -0400
From: Duong Nguyen <
duongn@xxxxxxxxxx>
Subject: Re: [platform-swt-dev] Active X and SWT - Failed to create
       Ole     Client  error.
To: "Eclipse Platform SWT component developers list."
       <
platform-swt-dev@xxxxxxxxxxx>
Message-ID:
       <
OF67ECE404.D4A57775-ON85257338.0050A822-85257338.00555014@xxxxxxxxxx >
Content-Type: text/plain; charset="us-ascii"

"Class not registered" refers to the COM class that your Active X
requires. There can be several reasons for this:
       - low memory
       - missing dll
       - dll not registered properly
       - invalid permission on dll

There's currently a bug report for Windows Media Player 11 not working
with SWT. We're not sure why it stopped working.
See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=173556

Duong


_______________________________________________
platform-swt-dev mailing list

platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


End of platform-swt-dev Digest, Vol 30, Issue 8
***********************************************

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top