05-15-2016, 12:24 PM
No.
str consists of 2 parts:
Fixed-size part containing pointer to string, length etc. It is 16 bytes, and sizeof gets it. Not used with process memory.
Variable-size string memory, which is r.len+1+extra. You need r.len+1.
lstrcpyn is useful to copy a string of unknown length to a fixed-size memory. Copies whole or part of string.
In C/C++ sizeof also can be used to get string constant length. In QM no.
str consists of 2 parts:
Fixed-size part containing pointer to string, length etc. It is 16 bytes, and sizeof gets it. Not used with process memory.
Variable-size string memory, which is r.len+1+extra. You need r.len+1.
lstrcpyn is useful to copy a string of unknown length to a fixed-size memory. Copies whole or part of string.
In C/C++ sizeof also can be used to get string constant length. In QM no.