David, >> I'm sorry to say it (again), but I think you're just asking for >> trouble, here. What do you have implemented in Java that's so >> useful and difficult to port to Delphi or VM or (even better) C#? > > What's VM?
Whoops. That should have been "VB". > I would really prefer to have this done in Delphi, but basically it > has to do with where we have programmer-hours available. I complete understand. > The other reason (not the deciding one, but another point in its > favor) to do it in java is for later portability to another package > we're considering developing over the next year or so for web-based > administration of one of our other apps. That's an interesting strategy... do new development in Java and write wrappers for existing software to use the new libraries. In this case, I think you are playing with fire. It turns out that C wrappers for Java libraries aren't that hard to write. IF you don't know much about C, though, I wouldn't recommend it. The bottom line to your question is that byte offsets are difficult if not impossible to predict, and you are better off using getDeclaredField and getField().getValue() calls. Better yet, write your own, simpler Java wrapper and then ddl-ize /that/. You could even write a short Java program to read your classes using reflection and write-out simpler forms of data, like all Strings or well-ordered, binary data. Good luck, -chris
signature.asc
Description: OpenPGP digital signature