Platform SDK: CDO 1.2.1

CDO Classes in Java

To take advantage of the CDO libraries in a Java program, you must first create Java class wrappers from their type libraries. The type library for the CDO Library is embedded in CDO.DLL. The type library for the CDO Rendering Library is embedded in CDOHTML.DLL.

To create a class wrapper

  1. Run the Microsoft® Visual J++™ Development Environment.
  2. From theTools menu, choose the Java Type Library Wizard.
  3. From the list of available Automation servers, select Microsoft CDO 1.2 Library or Microsoft CDO 1.2 Rendering Library.
  4. Click OK to tell the wizard to create the needed classes.

The preceding steps cause the Java classes to reside in the subdirectory ...\Java\TrustLib\cdo or ...\Java\TrustLib\cdohtml, depending on your choice of Automation server. You may wish to print out the SUMMARY.TXT file located in this directory. It is a useful reference for Java support for the CDO libraries.