CString::Find

Call this member function to search this string for the first match of a substring. The function is overloaded to accept both single characters (similar to the run-time function strchr) and strings (similar to strstr).

Syntax

int Find( TCHAR ch ) const;

int Find( LPCTSTR lpszSub ) const;

At a Glance

Header File Afx.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CString Overview, CString Member Functions, Simple Value Types, CString::ReverseFind, CString::FindOneOf