Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

using Java objects in a C++ application

Posted on 1998-11-24
1
175 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

839 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