64bit interprocess communication

I am tasked with implementing an xml editor based on Win32 as a frontend process, while the business logic will be handled via a 64bit process. In addition the communication between the two processes will be done via a message bus which can only transmit messages of the form wchar_t * . (Yes it is so bad).

Assuming you have only C++ 03 in your hands, no external library support eg Boost what would be the best design for this task? The use case is that the user simply edits some .xml files.

I was thinking having a function pointer table in the business logic module which handles the different messages and then returns back to "listening" to events.

Side question is there any "easy" way to serialize an object as a string?

Thanks a lot.

Edit:

Boost is now allowed. Should I go with ASIO or MPI? I guess the first one right?


Establish a socket connection between the processes and send text messages back and forth.

For socket connections Boost.Asio is a good option, for serialization Boost.Serialization with a text archive. Although Boost.Serialization is hard to debug.


WinAPI RPC - “... 64位Windows支持64位和32位进程之间的远程过程调用(RPC)(在同一台计算机和不同计算机上)......”

链接地址: http://www.djcxy.com/p/56622.html

上一篇: 如何编写像new line这样的特殊字符,并输出haddock的格式

下一篇: 64位进程间通信