I use a BYTE PTR set to the beginning of a PSZ and another moving to the end.
So according to the Programmers Guide of 2.7 the subtraction end pointer minus begin pointer should give the byte count-1
I tried
Code: Select all
LOCAL pAnf, pEnd as BYTE PTR
LOCAL dwLen as DWORD
...
dwLen := pEnd - pAnf
converting PTR <-> DWORD: 51423
illegal automatic conversion to DWORD: 51521
Same happens with INT and LONGINT (similar errors of course)
Any hints?
BR Kurt