Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use boost::serialization between x86 and x64 platforms

I have a program that runs as 64 bit application under Windows. I want the same program to work as 32 bit application. It compiles, links and runs, but I cannot read the files which I stored with the 64 bit application in the 32 bit application. I use boost::serialization with binary archives for writing and reading from files.

The software has already been released to a client. The client should be able to read the files that have been stored by the 64 bit application with the 32 bit application. Is this possible? How? Any expenriences?

like image 262
Ralph Tandetzky Avatar asked Oct 06 '22 22:10

Ralph Tandetzky


2 Answers

you could write a 64 bit application that converts binary archives to xml archives. these you could probably read with a 32 bit application and convert to a format of your choice.

like image 199
stefan Avatar answered Oct 10 '22 02:10

stefan


Consider using protable binary archive.

like image 39
Igor R. Avatar answered Oct 10 '22 02:10

Igor R.