The information in this article applies to:
SYMPTOMSWhen trying to use a Visual C++ generated ActiveX Control from Java, you will see the following error when trying to run the Java application:
RESOLUTION
When trying to use an ActiveX Control as an automation server, you need to
override the method IsInvokeAllowed. For more information on why this
method has to be overridden, please see the REFERENCES section below.
For the example case given below, you will override this method in the
Circ3ctl.cpp file and declare this virtual function in the Cir3ctl.h file.
Also make sure you rebuild and re-register the control before using it from
Java.
STATUSThis behavior is by design. MORE INFORMATIONSteps to Reproduce Behavior
REFERENCESFor more information on how to use an ActiveX Control as an Automation Server, please see the following article in the Microsoft Knowledge Base: Q146120 HOWTO: Use an OLE Control as an Automation ServerFor more information on how to use the new Jvc.exe with Visual J++, please see the following article in the Microsoft Knowledge Base: Q183712 HOWTO: Installation Instructions for SDK for Java Additional query words: Catastrophic error activex control
Keywords : kbSDKJava300 kbSDKJava310 JCOM kbSDKJava320 |
Last Reviewed: October 14, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |