I have heard that the way string memory is handled is different in Visual 
Studio < 2005 onwards. For instance if you have a the following
char* pChar;
 pChar = "Hello";

pChar is considered a constant and placed in read-only section of memory. So 
does not allow any kind of manipulation of it. I will not be able to access 
individual characters and strip it or change it in anyway.

I am interested in writing a Right Trim function which takes in a LPSTR 
parameter and returns a LPSTR parameter. I will be very grateful for any help 
on this as I am a bit rusty on VC++

Regards
TFE
http://totallyfreeenergy.zxq.net


Reply via email to