Does anybody know how can we use Java to prepare a C HeaderFile
Hi,
This is the first time I post here. I am a regular C++ programmer for the past 4 years and currently pursuing my Engg Studies.
Well, one of my friend knows a bit abt java, and we heard that we could use JAVA to build header files which can be used in C++
Does anybody know abt it. The Websites we searched, could not come up with something good.
Plz provide me with some info.
Thanx
... Sounds like a unmaintainable mess to me...
And, I really don't know if it can be done. Heck, you can't even mix-'n-match header files between two different C++ compilers! (There are multi-platform libraries that work on multiple compilers.)
You might be able to use a DLL (or other 3rd program) to interface between the C++ and Java parts of the program. I think the DLL could be created in just about any language... Well, I don't know if you can create a DLL in Java.
[EDIT]
Here's a crude solution: Put the common-shared variables & "status registers" in a file so that both the C++ and the Java "halves" of the program can access it. Yuch!
Or, it is possible to put the common-shared information memory. If you know how to write kernel mode drivers (and I don't), it should be trivial to make a bit of memory exclusively available to these two program "halves".