Help Center

AfxGetFileExtfunction

Parses a path/filename and returns the extension portion of the path/file name. That is the last period (.) in the string plus the text to the right of it.

WindowsfunctionAfxWin.incdocumented

Syntax

FUNCTION AfxGetFileExt (BYREF wszPath AS WSTRING) AS DWSTRING
Also documented as AfxFileExt — one description covers them all.

Parameters

NameDescription
wszPathThe path/filename string.

Description

Parses a path/filename and returns the extension portion of the path/file name. That is the last period (.) in the string plus the text to the right of it.

Reference

  • Include file AfxWin.inc
  • Defined in AfxNova/AfxWin.inc:635
  • Documented in Windows/Windows Procedures.md
  • Topic: Windows Procedures