問題描述
是否有關于用于序列化各種 MFC 數據結構的二進制格式的明確文檔?我已經能夠在十六進制編輯器中查看我自己的一些類,并使用 Java 的 ByteBuffer 類來讀取它們(使用自動字節序轉換等).
Is there any clear documentation on the binary formats used to serialize the various MFC data structures? I've been able to view some of my own classes in a hex editor and use Java's ByteBuffer class to read them in (with automatic endianness conversions, etc).
但是,我目前在嘗試引入 CObArray 數據時遇到了問題,因為似乎有一個相當大的標題對我來說是不透明的,并且不清楚它是如何持久化對象類型信息的.
However, I am currently running into issues while trying to bring over the CObArray data, as there seems to be a rather large header that is opaque to me, and it is unclear how it is persisting object type information.
是否有一套在線文檔可以對此有所幫助?或者來自過去處理過這個問題的人的一些示例 Java 代碼?
Is there a set of online documentation that would be helpful for this? Or some sample Java code from someone that has dealt with this in the past?
推薦答案
由于 MFC 附帶源代碼,我將創建一個測試 MFC 應用程序來序列化 CObArray 并逐步執行序列化代碼.這應該會為您提供所需的所有信息.
Since MFC ships with source code I would create a test MFC application that serializes a CObArray and step through the serialization code. This should give you all the information you need.
這篇關于讀取 VC++ CArchive 二進制格式(或 Java 讀取(CObArray))的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!