quote:
Originally posted by -dt-
code:
var str = "moo goes the cow";
var strPtr = Interop.Allocate( (str.length *2) +2);
strPrt.WriteString(0,str);
Debug.Trace("The pointer is ..." + strPtr.DataPtr );
for deAd: note that this does not give the pointer to the 'str' variable, but rather gives a pointer to another copy of that string.