THE CHARACTER ACCESS ROUTINES
In order to access invidivual characters in secharptrs, the following macros must be used. If you access the characters using the standard C notation, such as + for indexing and [] for accessing, your code will fail on MBCS builds. The following macros are provided instead:
SECHARPTR_OFFSET(string,offset)
SECHARPTR_DIFF(string1,string2)