I have a structure of CString variabls.I need to pass this variable from one application to other application.I was trying WM_COPYDATA message to pass the data but i'm unable to receive the structure in the destination process.can someone help me out in this.
my code looks like this
raghu.name = "Raghu";
raghu.job = "none";
datastruct.lpdata = (void*)&raghu;
datastrcut.cbdata=raghu.name .getlength() + raghu.job.getlength();//is this correct way??
::SendMessage(HWND_BROADCAST, WM_COPYDATA, (WPARAM)this->GetSafeHwnd(), (LPARAM)&datastruct);
Thanks in advance