Using Win32 functions in Visual FoxPro Image Gallery
Common Dialog Box
..msdn
ChooseColor
ChooseFont
CommDlgExtendedError
FindText
GetFileTitle
GetOpenFileName
GetSaveFileName
PageSetupDlg
PrintDlg
PrintDlgEx
TaskDialog
TaskDialogIndirect
Code examples:
Extracting the name and extension parts of a path string
GetFileTitle
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the name of the specified file.
Code examples:
Extracting the name and extension parts of a path string
Declaration:
short GetFileTitle(
  LPCTSTR lpszFile,  // path and file name
  LPTSTR lpszTitle,  // file name buffer
  WORD cbBuf         // length of buffer
);
FoxPro declaration:
DECLARE SHORT GetFileTitle IN Comdlg32;
    STRING   lpszFile,;
    STRING @ lpszTitle,;
    INTEGER  cbBuf
Parameters:
lpszFile
[in] Pointer to the name and location of a file.

lpszTitle
[out] Pointer to a buffer that receives the name of the file.

cbBuf
[in] Specifies the length, in TCHARs, of the buffer pointed to by the lpszTitle parameter.
Return value:
If the function succeeds, the return value is zero. If the file name is invalid, the return value is unknown.
My comment:
In other words this function extracts the file and extension parts from a legal Win32 path string. Although that does not mean that file should exist.
Word Index links for the GetFileTitle :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-08-24 12:00:00
Modified: 2001-11-26 16:03:23
Visited in last 7 days: 11
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.80.137.168)
5 sec.Function: 'GdipCreateFromHDC'
10 sec.Function: 'NetMessageNameDel'
14 sec.Function: 'WSAConnect'
19 sec.Function: 'SQLBindCol'
24 sec.Function: 'SetMailslotInfo'
29 sec.Function: 'waveInGetErrorText'
35 sec.Function: 'GetUserDefaultLangID'
40 sec.Function: 'mixerClose'
45 sec.Function: 'CreateRoundRectRgn'
51 sec.Function: 'CeGetTempPath'
Google
Advertise here!