I have a project in native c++ that currently communicates with a c# project through COM. I’d like to replace COM with a c++\cli wrapper. Both projects use XML, and pass it back and forth using COM Variant. If I switched to a c++/cli wrapper, what could I use to pass XML between the layers?
Share
Well, we had a similar arrangement and we switched to use a simple socket to pass the messages. In our case it was a native c/c++ app and a managed app – so two processes. Gave us the advantage to put them on separate PCs as well. If the native project is just a DLL you call into you might just want to add a
SendMessageinterface to pass the XML message as string through.