Re: Visual Basic to C++ Syntax Translation
Len() has several equivalents in C++.
1) For structures and primitives like int, etc., use sizeof().
2) For strings, use strlen() for primitive strings, i.e. char arrays. (include string.h)
3) I don't know how to get the length of a string string.
4) For dynamically allocated memory, use _msize() (include memory.h or malloc.h)
|