AfxIsValidString
Visual Studio 2010
Use this function to determine whether a pointer to a string is valid.
BOOL AfxIsValidString( LPCSTR lpsz, int nLength = -1 );
Use this function to determine whether a pointer to a string is valid.
BOOL AfxIsValidString( LPCSTR lpsz, int nLength = -1 );