Java vs c++ types
- by folone
I've recently had a question about coledatetime java implementation, and Chris said, that the problem might lay in type conversions: cpp-float vs java-float (Or maybe cpp-date vs java-date. Not types, but..). Now I have several questions on this:
Is there a table of comparison for java vs c++ types?
If type conversions is the problem, in my situation (I have a db with OLEDate records, already created with some c++ program. I need to read and write to that db, so that the OLEDate field compatibility remained: my java code reads proper dates, and c++ program is not affected with what the java program wrote to the db.), what would you do:
Use COleDateTime to retrieve the date with JNI?
Create your own implementation at all costs (using broader types, or anything else)?
Is there anything, I'm missing here?