Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SharedMemory, create filemapping path
#5
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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)