Solved

using Java objects in a C++ application

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

758 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