Snit Roy wrote:
> suppose i want to use the java.util.TreeMap class of java in C++ what should
> i do in MSVC++2008sp1???
>
You should use the C++ equivalent, std::map. You should use data
structures native to the language you are using.
The primary reason for bridging languages like this is to use two
products or frameworks together in a way that leverages their strengths.
For example, calling C++ code from a Java web service, but to perform a
task that Java cannot do as efficiently. Perhaps you could create a
binding that allows you to use a C++ library from a Java web service,
and your code would work with JNI to bridge the two ("adapter" design
pattern).
You should not be grabbing classes from each language and using them
together for no reason, which appears to be what you are trying to do.
--
John Gaughan
http://www.jtgprogramming.org/