I have two application to communicate; C# and C++ MFC . I want to post and CString pointer address to c# and then at c# try to get and maybe change it.
at c++ CString * pstr = "123";
let's say pstr value is 0x112233;
usage must be like
String pointerAddress = "0x112233";
IntPtr processHandle = (IntPtr)Convert.ToInt32(pointerAddress);
String value = Marshal.PtrToStringAnsi(processHandle);
value = value + "456";
IntPtr = Marshal.StringToHGlobalUni(value);
is that possible? Main idea is not converting CString to String, main ides is posting string value. It can be any different format.