Originally Posted by
flashbaz-pi
I didn't understand what did you mean exactly. Where I will make this and how? I tried, I tried, I tried but couldn't use malloc :'(
Code:
metKrkSys = GetWindowTextLength(hMet);
GetWindowText( hMet, metMetin, metKrkSys+1);
metMetin is a pointer and its allocated size is ... 0!
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;