ZwOOp
February 14th, 2005, 11:20 AM
How can i convert a HWND to be hold in a TCHAR and how can i take it from the TCHAR back to a HWND?
|
Click to See Complete Forum and Search --> : Converting HWND to be hold in a TCHAR ZwOOp February 14th, 2005, 11:20 AM How can i convert a HWND to be hold in a TCHAR and how can i take it from the TCHAR back to a HWND? ovidiucucu February 14th, 2005, 12:28 PM You mean in a string? Something like this: LPTSTR psz = new TCHAR[9]; _stprintf(psz, _T("%p"), hWnd); LPTSTR pStop; hWnd = (HWND)_tcstol(psz, &pStop, 16); // ... delete []psz; ZwOOp February 14th, 2005, 01:53 PM Thanks Perfect!! codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |