CString::Find

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

At a Glance

Header file: Afx.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

int Find( TCHAR ch ) const;

int Find( LPCTSTR lpszSub ) const;

See Also

CString::ReverseFind, CString::FindOneOf