I am doing a threading, but i don’t know how to print out the pointer value.
UINT __cdecl CThreadDlg::func(LPVOID pParam)
{
data *ptr = (data*)pParam;
AfxMessageBox(L"You have entered a thread function.");
ptr->a = "abc12345"; // char * a
AfxMessageBox(???); // what should i put here to print out the value of a?
return 0;
}
Maybe something like this:
Edit:
to get value ‘ptr->a’ points to: