0

Hi,

Could someone please advise me on how to get the full path of a file in MS VC++ and Dev C++? And would anyone know how to open in new windows, files of different extensions like .jpg or something like that?

Thanks in advance. :-D

MirroredReality

2
Contributors
3
Replies
4
Views
10 Years
Discussion Span
Last Post by Ancient Dragon
0

Hi,

Thanks for your reply. But lets say that the user only knows the name of the file and not the path name. In that case, how can I get the path name for the user?

Thanks.

Regards

MirroredReality

0

That could take a very very long time -- see FindFirstFile() and FindNextFile(). What will you do if there are more than one file with the filename but in different folders ? I posted an example program over in the Code Snippets c++ board awhile back.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.