View Single Post
  #10 (permalink)  
Old 07-21-2008, 11:04 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 862
Last Blog:
Programs Under the Hoo...
Credits: 0
Rep Power: 13
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default 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)
Reply With Quote