2

I have an object of std::map in my VC++ application. The format of the map is as follows: map<CString, map<CString, CSimpleArray<CString>>> x;

I want to pass this object to server through a RPC call. So, I am using MIDL for creating the client and server stubs for RPC calls.

But, MIDL does not support higher level datatypes. So, is there any way I can pass this object to the server using MIDL? Or, how can I serialize it to basic data types, so that I can pass them to the server using MIDL?

I am using VS2015 for the development purpose.

Prerak Sola
  • 9,517
  • 7
  • 36
  • 67

1 Answers1

1

I'd suggest serializing this complex structure to XML or JSON and pass it as a string.

Andrew Komiagin
  • 6,446
  • 1
  • 13
  • 23