metMetin is a pointer and its allocated size is ... 0!Code:metKrkSys = GetWindowTextLength(hMet); GetWindowText( hMet, metMetin, metKrkSys+1);
You must allocate space before using a pointer! http://cpwiki.sourceforge.net/Common...kes_and_errors
Do this with new, not malloc.
And then do not forget to free it.
Code:metMetin = new char[hMet]; ... delete  metMetin;