The Windows API HELP states, in connection with GetTextExtentPoint32,
that --
lpString
Points to the string of text. The string does not need to be zero-terminated, since cbString specifies the length of the string.
This line of code works:
Call GetTextExtentPoint32 (hDC&, tx$+Chr$(0), Len(tx$), apiSz)
If the Chr$(0) is removed, PowerBasic reports a compile time error
about "parameter mismatch". Anyone know of a reason for this?
------------------
that --
lpString
Points to the string of text. The string does not need to be zero-terminated, since cbString specifies the length of the string.
This line of code works:
Call GetTextExtentPoint32 (hDC&, tx$+Chr$(0), Len(tx$), apiSz)
If the Chr$(0) is removed, PowerBasic reports a compile time error
about "parameter mismatch". Anyone know of a reason for this?
------------------
Comment