get size of string pointed to by a position memory pointer
<p>I want to get characters of a string pointed by a position memory pointer in native C++:</p>

<p>for an equivalent implementation in C#, it will be:</p>

<pre><code>int positionMemory = getPosition();

long size = 10;

string result = Marshal.PtrToStringAnsi(new IntPtr(positionMemory), size);
</code></pre>

<p>How can I produce the result in C++? </p>

<p>Thanks in advance. </p>
