Advertisement

getiing filename not the whole path

Started by December 22, 2000 06:28 AM
0 comments, last by Mansion 24 years ago
i use OPENFILENAME struct, and GetOpenFileName...with this i get whole path, anybody know how can i get just file name?
OPENFILENAME OpenFileName;
char str[30];

// after you call the GetOpenFileName ( )
OpenFileName.lpstrFileTitle = str;

// str will have the name of the file.

if ( there''''s a will )
return ( there''''s a way );

This topic is closed to new replies.

Advertisement