This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: header file to include java classes?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]