I have a simple MFC application which holds one dialog with several controls.
I created a thread and with function wich applies to one of the dialog controls. When I run the program I immidiatly have Assertion Failure.
Here is the code:
static UINT Recieve(LPVOID d)
MainDlg& dobj = *(MainDlg*)d;
CString tmp = ((char)m.mDestination);
//here it fails:
Could anybody solve this problem for me