Using J++ to make ActiveX control or other com interfaces.

I recently contracted to port a mathematical algorithm from C++ to java. A wrapper application implemented in C++ (using MFC) exists for testing the C++ version of the algorithm. There is no desire to port the wrapper application, only the algorithm.

The mission:
After rewriting the algorithm in java, I would like the new java code to be integrated with the old wrapper application so it may be verified to function identically.

The strategy:
I think I should use Visual J++ to build a COM interface for the new java code. That would simplify the integration of new java code with existing mfc wrapper application for testing.

1) What flavor COM interface is best? (ActiveX control? Automation Server? Other?)
2) How do I build the COM interface to the new java classes?
3) How do I access the COM interface from the wrapper application in Visual C++?

If you know of a clear, complete, concise tutorial on this topic, that might be ideal.

Otherwise, please try to be as specific as possible in describing the steps to complete this task.

I currently use Visual C++ 5.0 and Visual J++ 1.1.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
djelescuAuthor Commented:
Very helpful. Thanks.
also look

Using COM Objects in Java /pg_javacom.htm
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.