Partager via


CPathT::RenameExtension

Call this method to replace the file name extension in the path with a new extension. If the file name does not contain an extension, the extension will be attached to the end of the path.

BOOL RenameExtension( 
   PCXSTR pszExtension  
);

Parameters

  • pszExtension
    The new file name extension, preceded by a "." character.

Return Value

Returns TRUE on success, FALSE on failure.

Remarks

For more information, see PathRenameExtension.

Requirements

Header: atlpath.h

See Also

Reference

CPathT Class