provided by: 
Originally published at Internet.comThe fact is that Java has been accepted more quickly than any other programming language for Internet applications running on multiple platforms. But many a COM object has been developed by using C++ technology, which are still very useful and very fast as compared with Java.
Hence, I'm inspired to use these COM objects that already exist using Sun's Java. The COM object can be called by a client with Microsoft's JVM or J++, but not with Sun's Java directly. I'll try to show you the way to do this using Java.
In this tutorial, I intend to build an application that can access a COM object created using VC++ 6.0 ATL and then call this COM-server object via a pure Java client.
I believe you should first know how to employ simple COM using ATL with VC++.
I will divide the tutorial into three parts:
1. Write a COM server.
2. Write a Java client.
3. Write an interface between 1 and 2 to work.
Part I
Step 1: Building ATL COM
Choose the "ATL COM AppWizard". Give the project the name "Java_COM_ATL". Set the location where you want this project to be saved in Select "Server Type" as "Dynamic Link Library". Press the finish button to have the Wizard generate the appropriate files for you. A "New Project Information" window will appear to tell you what files are going to be created. Press the OK button to accept this...
Read article at Internet.com site