Partager via


CPathT::MatchSpec

Call this method to search the path for a string containing a wildcard match type.

BOOL MatchSpec( 
   PCXSTR pszSpec  
) const;

Parameters

  • pszSpec
    Pointer to a null-terminated string with the file type for which to search. For example, to test whether the file at the current path is a DOC file, pszSpec should be set to "*.doc".

Return Value

Returns TRUE if the string matches, or FALSE otherwise.

Remarks

For more information, see PathMatchSpec.

Requirements

Header: atlpath.h

See Also

Reference

CPathT Class