Question

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 e.g. 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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top