Desierialize MFC CArchive in C#

  • Thread starter Thread starter Kazinski
  • Start date Start date
K

Kazinski

I have some MFC object serialized through CArchive on file.
I want to deserialize this in a C# application (or rather web service).

Since I have no control over the production of the file, it cannot be
serialized as XML.

Did anyone manage to deserialize an CArchive object in C#?
 
Kazinski,

Chances are you will not be able to do this. Unless you know the format
of the MFC serialization stream, you will have to resort to de-serializing
it in C++, and then providing a managed interface to the CArchive instance.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Kazinski said:
I have some MFC object serialized through CArchive on file.
I want to deserialize this in a C# application (or rather web service).

Since I have no control over the production of the file, it cannot be
serialized as XML.

Did anyone manage to deserialize an CArchive object in C#?


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption
=---
 
I realize that it has been some time since the last post related to reading C++ CArchive files, but I have deciphered the file structure and have written a c# class to read them.

You must however know the exact order and data types of the data written to the file (Original C++ source needed).

The file types I am able to read are as follows:
CString
CStringArray
WORD
WORDArray
DWORD
DWORDArray


If you still need help with this, I can be reached at (e-mail address removed).
 
Back
Top