i have a string stored in a buffer. i need to trim the first letter from the string so that when i access the buffer that first letter will be gone. the string changes constantly but i still need only the first letter trimed before it changes again. thanks smurf
Posted on 2001-06-06 19:35:00 by smurf

 The lstrcpy function copies a string to a buffer. 
 LPTSTR lstrcpy(
    LPTSTR lpString1,	// address of buffer 
    LPCTSTR lpString2 	// address of string to copy 
   );
try that... address of string to copy + 1
Posted on 2001-06-06 19:45:00 by NOP
smurf, If you need to read it from the buffer without making a copy of the string, just increment the pointer to the string by 1 byte, that should do the job. Regards, hutch@pbq.com.au
Posted on 2001-06-06 19:49:00 by hutch--
thanks NOP that works well. thanks Hutch your method is a better solution for my situation. smurf This message was edited by smurf, on 6/6/2001 8:04:50 PM
Posted on 2001-06-06 19:56:00 by smurf