Advertisement

Path Names

Started by February 05, 2001 10:05 AM
0 comments, last by Lor 24 years ago
When you create a file open dialog box and capture the result as a CString, i.e: m_sSomeSting = m_ldFileOpen.GetPathName(); What is the foramt of that string? Or, to be more precise, how would I specify a path manually. I tried just saying, for example: m_sSomeSting = "C:\Blah\Blah Blah2\Blah.blh"; But it warns me that \B etc... are invalid escape key sequences. When I ignore these, it just doesn''t work. Specifically, I am loading bitmaps from the hard disk, and use a file open dialog box to allow the user to select a file, but I want to be able to open a file from inside the program. Thanks V. much. Lor.
use \\ for \ in a string. \ is used for escape characters.

This topic is closed to new replies.

Advertisement