Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveXs in Applet? Browser says Parent Must be derived from form

Status
Not open for further replies.

Karl Blessing

Programmer
Feb 25, 2000
2,936
US
I tried to load a simple ActiveX control into a Java applet, the ActiveX is a simple one I made in VC++, with a single exposed Method that adds two number, when I use a COM Wrapper on it, and have this code:<br>
<br>
exposedsimple.ExposedSimple.ExposedSimple MyAct = new exposedsimple.ExposedSimple.ExposedSimple();<br>
<br>
MyAct.createControl();<br>
NumB = MyAct.AddThem((short)5,(short)5);<br>
<br>
The Applet remains gray(and never hits the breakpoint I set afterwards), and the Status at the bottom of the Browser said:<br>
&quot;exception: com.ms.wfc.core.WFCException: ActiveX control's top level parent has to be derived from class Form&quot;<br>
<br>
from this I think it means the object I place the Control on, has to be on a Form, is there anyway I can put it on an Applet, even if not visually(being able to use it's methods and what not)<br>
<p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML, ASP(somewhat), QBasic(least i didnt start with COBOL)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top