Solved

using Java objects in a C++ application

Posted on 1998-11-24
1
169 Views
Last Modified: 2010-04-01
Hi,
Do u know how to use a java object in a C++ application?
Please be as precise as possible, I'm a beginner.
Thanks
Stéphane
0
Comment
Question by:stef3
1 Comment
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 80 total points
ID: 1178604
I assume you're using Microsoft J++ and Visual C++. If so, then you can use J++ to create a COM object. Then use #import in Visual C++ to create a C++ wrapper for the COM object.

Take a look at the book Inside Distributed COM from the Eddon guys. There is a sample that does what you want.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now