BVining
Hi, Carel You are correct about the first parameter not really being returned by the CPP. The command definition is however correct. It is because the first parameter is defined as being a return value, and of varying length, that the CPP is passed the [i>allocated[/i> length of the first parameter in the first 4-bytes of the first parameter. This allocated length value is then simply copied to the value of the second parameter and then returned. If the first parameter were to be defined as not being a return value, and of varying length, then the CPP would be passed not the allocated length of the parameter but rather the length of the [i>blank trimmed value[/i> of the parameter. By toggling the return value definition you can either determine the allocated size of the first variable (as in the article) or determine the length of the value assigned to the first variable. I hope this helps, Bruce
Please login to make comments.
User Rating: / 4
PoorBest 
   MC-STORE.COM