I have two EXEs, exe1 and exe2. They act like client and server linked through TCP. There is a "Merge" button in exe 1. On clicking it, the handle of the Form in exe 2 is received, which is logged as an int in a file.
// resp is object holding the handle value as wstring
long whnd = _wtoi(resp->GetValue("handle")->Value().c_str()); // converted from string to long
// Getting form object of exe2 from handle
TCommonCustomForm *wd = Fmx::Platform::Win::FindWindow((HWND)whnd);
// wd = NULL
But this is returning nullptr? Any idea why.
How to get the Form from exe2 through an HWND and merge it into the Form of exe1?