Win32Lib Update
- Posted by Ad Rienks <Ad_Rienks at COMPUSERVE.COM> Nov 26, 1998
- 963 views
A small bugling is showing up in getText. You add 1 to iLength to allocat= e buffer space. But iLength is used again thereafter. As it stands now, it doesn't return the last text character. IMO the best solution is to add 1= directly in the line where iLength is calculated for the first time. Then= you don't have to bother about string sizes in the lines that follow it. So, change the line that reads: iLength =3D c_func(xGetWindowTextLength, {hWnd}) + 1 -- directly addi= ng 1! BTW, your header says it's version 0.14b Ad