Browser Applet Control Sample

This sample is located in \Samples\Native\BrowserAppletControl.

Note   It is recommended that you have Microsoft® Visual C++® version 5.0 or higher installed.

Description
Using the Sample
Key Project Files
Technologies Demonstrated

Description

This sample shows how to use the Microsoft® ActiveX® Browser Applet Control, which is the same control used by Microsoft® Internet Explorer to handle the <APPLET> tag. This control was added in the Microsoft virtual machine provided by the Microsoft SDK for Java 2.02 and by Microsoft® Internet Explorer 4.0.

Using the Sample

To compile the sample

Use Nmake.exe to compile the makefile in the \Samples\Native\BrowserAppletControl directory. The makefile compiles the C code into an executable and also compiles the Java applet. Type the following command:

Nmake

To run the sample

Run the generated executable, AppletHoster.exe.

Key Project Files

AppletHoster.cpp

This file contains C code that implements the application that will host the Java applet.

SampleApplet.java

This file is a simple Java applet for demonstration purposes.

Technologies Demonstrated

Native Code

© 1999 Microsoft Corporation. All rights reserved. Terms of use.