Note
The applet in this sample uses a COM component. COM components
can access any system resource. To prevent this from being
a major security problem, typically, the browser allows only
trusted Java™ .CLASS files to access COM objects.
To facilitate development of Java applets that use COM,
Microsoft® Developer Studio relaxes this restriction
when the browser is run from within Developer Studio. This page will
not be able to access the COM resources it
needs to run, unless it is run from Microsoft Developer
Studio.
To run this applet from Microsoft Developer Studio:
- In Developer Studio, open the project for this Java applet.
- From the Build menu, choose Execute or Debug Run.
See the readme for information on
setup, purpose, errors, and so forth.
This project is an example of Java calling COM. Like
javabeep, it uses services from a simple Automation
server. In the sample, you registered the automation
server comserver.dll. You also created a Java
description of this server using the Java Type Library
Wizard.
Often, the installation program for the server will
take care of entering it in the registry. However,
you will have to create the Java description, using
the Java Type Library Wizard.
The source.