this won't change the caption, like it should do:

Code:
 //get the length of the typed-caption
				int cpt_len = GetWindowTextLength(htxtGetWindow);
				//int wnd_len; //caption of the alien window

				TCHAR  *pcBuf = new TCHAR[cpt_len];//edit text holder
				//retrieve the text from the edit box
				GetWindowText(htxtGetWindow, pcBuf, cpt_len);

				//finally, get the handle
				new_hwnd = FindWindow(0, (LPCTSTR)pcBuf);
				
				//retrieve the caption of the alien window, so it can
				//be restored later...
				/*wnd_len = GetWindowTextLength(new_hwnd);
				pcOldCaption = new TCHAR[wnd_len + 1];
				GetWindowText(new_hwnd, pcOldCaption, wnd_len);*/
				SetWindowText(new_hwnd, "mmmmm");
I don't see why it won't change the caption to mmmmmm.