This is a discussion on string::operand+ usage problem (with WIN32 data types) within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by flashbaz-pi But that's not last! I want this metMetin as an integer also. Is there any function ...
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;