The DAOSample sample creates a simple database browser using DAO.
Of special note, DAO requires a run-time license. To create a COM component with a license, use ILicenseMgr. The dao_dbengine class in this sample uses ILicenseMgr to create the DAO database engine. This class is redistributable. It can be found in the REDIST subdirectory on the CD-ROM.
If the HTML file is run from Microsoft Developer Studio, the class files are also trusted. This can be very helpful during applet development. However, to deliver your applet to other users, you must put it in a signed CAB file.
When run as an application, the class file must already be on your machine. When run as an applet, the class file may be downloaded to your machine. There is a potential security threat running downloaded software. To run a Java applet that uses COM components, the applet code must be trusted. For more information on trusted class files, see the CabAndSign sample.
Return to the top of this article.
To run the DAOSample sample:
Return to the top of this article.
If you get the error message java.lang.VerifyError:
If you get the error message ClassNotFoundException:
If you get the error message UnsatisfiedLinkError:
This sample includes the following files.
Project files: