R
Ron
I'm looking for a utility program that will convert C++ to Java.
I have already searched this group on the topic, but most of the posts
are quite old. I'm wondering if there is more up-to-date info.
I saw one previous post suggesting C2J. I'm going to give that a try,
but based on that thread it looks like the results from C2J may not be
all that useful.
Also, I did read all the advice explaining that a C++ to Java utility
is a bad idea. I am in agreement. But here is my situation:
I work on a tool, written in java, that monitors and displays messages
exchanged between two C++ programs. The number of messages is growing
quite fast, and even the definition for existing messages changes
quite often. Currently I am converting these message definitions by
hand from the original C++ source to java, but I am rapidly becoming
unable to keep up with the changes.
Also, the only things I really need to convert automatically are
header files, and those header files have either:
- a struct that defines the fields in a message
- a enum that specifies the possible values for a field in a message
So I am not trying to convert whole programs...just some fairly simple
type definitions.
Automation would help alot. I'll write my own tool if I need to, but
why re-invent the wheel if I don't need to?
Any advice is appreciated.
I have already searched this group on the topic, but most of the posts
are quite old. I'm wondering if there is more up-to-date info.
I saw one previous post suggesting C2J. I'm going to give that a try,
but based on that thread it looks like the results from C2J may not be
all that useful.
Also, I did read all the advice explaining that a C++ to Java utility
is a bad idea. I am in agreement. But here is my situation:
I work on a tool, written in java, that monitors and displays messages
exchanged between two C++ programs. The number of messages is growing
quite fast, and even the definition for existing messages changes
quite often. Currently I am converting these message definitions by
hand from the original C++ source to java, but I am rapidly becoming
unable to keep up with the changes.
Also, the only things I really need to convert automatically are
header files, and those header files have either:
- a struct that defines the fields in a message
- a enum that specifies the possible values for a field in a message
So I am not trying to convert whole programs...just some fairly simple
type definitions.
Automation would help alot. I'll write my own tool if I need to, but
why re-invent the wheel if I don't need to?
Any advice is appreciated.