Consultor Eletrônico



Kbase 18699: OPEN CLIENT: Object Doesn't Support Automation Error
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   20/05/1999
SUMMARY:

If you used ProxyGen to generate ActiveX proxies and you get an
error stating "Object doesn't support automation" when you try to
use them, this may be caused by a change Microsoft made to the
defaults for their java compiler (jvc.exe). We have found that the
change in default behavior is definitely in the 3.2 release of their
Java SDK. If you run "jvc" from a command prompt and the version
number it shows is 6.00.8424 or higher you will need to make
the change shown below to your .PXG file and regenerate your proxies.

We will be incorporating the new jvc.exe startup parameter in the 9.0B
release.

SOLUTION:

1) Open your .PXG in the Proxy Generator.

2) Select "Preferences..." from the "Options" menu.

At this point the "Generation Preferences" window should appear.

3) Select the "AppObject" tab in the folder.

4) Turn on the check box for "ActiveX".

5) Add "/x-" to the "Compiler Options" field for ActiveX.

6) Select the "Default" tab in the folder.

7) Turn on the check box for "ActiveX".

8) Add "/x-" to the "Compiler Options" field for ActiveX.

9) Turn off the check box for "ActiveX" if you do not want new
proxy objects (that is, .PXG files) to automatically enable
ActiveX generation.

10) Click the "OK" button to close the "Generation Preferences"
window.

At this point you may either regenerate your proxy object or exit
the ProxyGen utility.