const char* szWindowThreadID = (const char*)dwWindowThreadID;
::SetDlgItemText (hDlg, IDC_EDIT_WINDOW, szWindowThreadID);
This was answered in microsoft.public.vc.language, I believe.
Please don't multipost. If multiple groups are appropriate, crosspost.
In other words, after the cast szWindowThreadID actually points to an array
of chars at whatever address is equivalent to dwWindowThreadID.
This little snippet should work for you:
DWORD dwWindowThreadID = ::GetCurrentThreadId ();
char szWindowThreadID[20];
_ltoa(dwWindowThreadID, szWindowThreadID, 10);
::SetDlgItemText (hDlg, IDC_EDIT_WINDOW, szWindowThreadID);
Hope that helps....
"Ryan Dawson" <rd...@msn.com> wrote in message
news:#ZGeByMCCHA.1576@tkmsftngp04...
David (dkyc)
>.
>