1)
CString szMyString = _T("00010AC2");
TCHAR *szStop;
HWND hWnd = (HWND)_tcstol(szMyString, &szStop,16);
2)
HWND NotepadWnd =::FindWindow(”Notepad”,NULL);
::ShowWindow(NotepadWnd,SW_MINIMIZE);
CString find;
find.Format(”%d”,NotepadWnd);
HWND hConvertedHwnd= (HWND)_ttol(find);
::ShowWindow(hConvertedHwnd,SW_MAXIMIZE~~~)