Hello,
I've built a CFileDialog class that calls an open dialog window. I then use the GetPathName() to retrieve the path of the file. Once a condition is met in another part of my program that file is executed using ShellExecute. The problem is that to open a file you use a path like this
c:/my music/mysong.mp3
But GetPathName() returns a path like this
c:\my music\mysong.mp3
Any ideas? Or someway that works better?
I've built a CFileDialog class that calls an open dialog window. I then use the GetPathName() to retrieve the path of the file. Once a condition is met in another part of my program that file is executed using ShellExecute. The problem is that to open a file you use a path like this
c:/my music/mysong.mp3
But GetPathName() returns a path like this
c:\my music\mysong.mp3
Any ideas? Or someway that works better?