?

Log in

No account? Create an account
Bill Roper's Journal
The Wretched Incompatibility of Things 
21st-Mar-2016 11:00 pm
For testing, I've written a Java implementation of MFC serialization. We won't be shipping it, but it allows us to test things for now.

The problem is that Java and C++/MFC have very different ideas about how to handle various data items. For example, Java would like IDs to be immutable and shared among different objects that reference the same object by that ID. C++ doesn't want to share those IDs, because reference counting, well, not so much. So if you edit something in Java, the course of least resistance is to share the IDs, but then you need to make them all unique when you serialize them so that they work the way that C++ expects.

This turns out to be more difficult than you might think.

*sigh*
This page was loaded Jul 21st 2019, 12:00 am GMT.