Click here to Skip to main content
15,915,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get the path of a file Pin
David Crow12-May-04 8:11
David Crow12-May-04 8:11 
GeneralRe: Get the path of a file Pin
Ruben93812-May-04 8:45
Ruben93812-May-04 8:45 
GeneralRe: Get the path of a file Pin
David Crow12-May-04 8:49
David Crow12-May-04 8:49 
GeneralRe: Get the path of a file Pin
Ruben93812-May-04 11:16
Ruben93812-May-04 11:16 
GeneralRe: Get the path of a file Pin
David Crow13-May-04 2:09
David Crow13-May-04 2:09 
GeneralRe: Get the path of a file Pin
Ruben93812-May-04 11:16
Ruben93812-May-04 11:16 
GeneralRe: Get the path of a file Pin
David Crow13-May-04 2:11
David Crow13-May-04 2:11 
GeneralRe: Get the path of a file Pin
Christopher Lloyd12-May-04 10:30
Christopher Lloyd12-May-04 10:30 
MS documentation states: "The GetFullPathName function retrieves the full path and file name of a specified file". So you still have the file name there.

I'd use PathRemoveFileSpec this "Removes the trailing file name and backslash from a path, if it has them."

Info on PathRemoveFileSpec:

Minimum DLL Version shlwapi.dll version 4.71 or later
Header shlwapi.h
Import library shlwapi.lib
Minimum operating systems Windows 2000, Windows NT 4.0 with Internet Explorer 4.0, Windows 98, Windows 95 with Internet Explorer 4.0
GeneralRe: Get the path of a file Pin
Ruben93812-May-04 11:22
Ruben93812-May-04 11:22 
GeneralRe: Get the path of a file Pin
Christopher Lloyd13-May-04 2:00
Christopher Lloyd13-May-04 2:00 
GeneralRe: Get the path of a file Pin
Ruben93812-May-04 11:50
Ruben93812-May-04 11:50 
GeneralHexadecimal Pin
Roger H. Art12-May-04 7:34
sussRoger H. Art12-May-04 7:34 
GeneralRe: Hexadecimal Pin
David Crow12-May-04 7:41
David Crow12-May-04 7:41 
GeneralRe: Hexadecimal Pin
toxcct12-May-04 7:44
toxcct12-May-04 7:44 
QuestionHow to set up Windows XP theme for the controls Pin
Truong D. Toan12-May-04 7:07
Truong D. Toan12-May-04 7:07 
AnswerRe: How to set up Windows XP theme for the controls Pin
Joe Woodbury12-May-04 7:11
professionalJoe Woodbury12-May-04 7:11 
AnswerRe: How to set up Windows XP theme for the controls Pin
Prakash Nadar12-May-04 7:14
Prakash Nadar12-May-04 7:14 
GeneralNon Recursive Folder Traversal Pin
bikram singh12-May-04 6:15
bikram singh12-May-04 6:15 
GeneralRe: Non Recursive Folder Traversal Pin
David Crow12-May-04 6:31
David Crow12-May-04 6:31 
GeneralRe: Non Recursive Folder Traversal Pin
bikram singh12-May-04 6:39
bikram singh12-May-04 6:39 
GeneralRe: Non Recursive Folder Traversal Pin
David Crow12-May-04 7:39
David Crow12-May-04 7:39 
GeneralRe: Non Recursive Folder Traversal Pin
Jim Crafton12-May-04 6:33
Jim Crafton12-May-04 6:33 
GeneralRe: Non Recursive Folder Traversal Pin
Joe Woodbury12-May-04 10:27
professionalJoe Woodbury12-May-04 10:27 
GeneralRe: Non Recursive Folder Traversal Pin
David Crow13-May-04 2:16
David Crow13-May-04 2:16 
GeneralRe: Non Recursive Folder Traversal Pin
Joel Lucsy13-May-04 3:58
Joel Lucsy13-May-04 3:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.