header file to include java classes?

Andrew Haley aph@redhat.com
Thu Dec 20 10:03:00 GMT 2007


Swapnil.Kale writes:
 > 
 > Hi,
 > Let me be more specific on this.
 > 
 > I've a C++ dll which is calling FORTE (the language developed by SUN
 > 10/15 yrs back. Now it is outdated). Now after I migrate the project
 > to JAVA (Forte was pretty similar to JAVA), My task would be to call
 > the Java programs into the existing C++ dlls.
 > 
 > I could use the JVM and the getobject methods etc...using JVM
 > creattion in C++.
 > 
 > My problem: The existing header files of the dlls / C++ contains the
 > type of the classes .
 > 
 > /*
 > // EnvironmentHandle.h: interface for the EnvironmentHandle class.
 > */
 > e.g. qqhEnvironmentHandleClass * GetForteHandle(void) { return
 > m_ForteEnvHandle;}
 > 
 > qqhEnvironmentHandleClass was a Forte class which is a
 > EnvironmentHandleClass in Java now. (not reflected in the code),
 > 
 > The new code could be EnvironmentHandleClass * GetForteHandle(void)
 > { return m_ForteEnvHandle;}
 > 
 > //just an assumption, didnt find the right way yet.
 > 
 > Now How do I refer this converted Java Class in the C++ header.
 > 
 > How do I tell the C++ header where to look for the Java classs?
Where to look? You mean where to look in the filesystem? That's just
the -I argument at compile time.
Andrew.
-- 
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /