Click here to Skip to main content
15,901,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Cstring to char * error Pin
Zac Howland21-Jun-06 13:23
Zac Howland21-Jun-06 13:23 
QuestionRe: Cstring to char * error Pin
David Crow21-Jun-06 9:12
David Crow21-Jun-06 9:12 
AnswerRe: Cstring to char * error [modified] Pin
kitty521-Jun-06 9:29
kitty521-Jun-06 9:29 
QuestionRe: Cstring to char * error Pin
David Crow21-Jun-06 9:35
David Crow21-Jun-06 9:35 
Questionlist in mfc Pin
kamalesh8221-Jun-06 7:42
kamalesh8221-Jun-06 7:42 
AnswerRe: list in mfc Pin
led mike21-Jun-06 7:55
led mike21-Jun-06 7:55 
GeneralRe: list in mfc Pin
kamalesh8221-Jun-06 8:00
kamalesh8221-Jun-06 8:00 
GeneralRe: list in mfc [modified] Pin
Zac Howland21-Jun-06 8:35
Zac Howland21-Jun-06 8:35 
If you set the OFN_ALLOWMULTISELECT flag for the dialog, you use the following code to iterate through the list of path names:

CFileDialog dlg(...); // use appropriate settings<br />
if (dlg.DoModal() == IDOK)<br />
{<br />
POSITION pos = dlg.GetStartPosition();<br />
while (NULL != pos)<br />
{<br />
CString newPath = dlg.GetNextPathName(pos);<br />
// do something with newPath<br />
}


Is that what you are trying to do?

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

-- modified at 15:29 Wednesday 21st June, 2006
QuestionRe: list in mfc Pin
David Crow21-Jun-06 9:11
David Crow21-Jun-06 9:11 
AnswerRe: list in mfc Pin
led mike21-Jun-06 10:19
led mike21-Jun-06 10:19 
AnswerRe: list in mfc Pin
Hamid_RT21-Jun-06 19:31
Hamid_RT21-Jun-06 19:31 
QuestionDouble to String Pin
Max++21-Jun-06 6:59
Max++21-Jun-06 6:59 
AnswerRe: Double to String Pin
Greg Daye21-Jun-06 7:04
Greg Daye21-Jun-06 7:04 
AnswerRe: Double to String Pin
Jun Du21-Jun-06 7:08
Jun Du21-Jun-06 7:08 
AnswerRe: Double to String Pin
Hamid_RT21-Jun-06 19:25
Hamid_RT21-Jun-06 19:25 
QuestionMFC CfileDialog Pin
Manjunath S21-Jun-06 6:38
Manjunath S21-Jun-06 6:38 
QuestionRe: MFC CfileDialog Pin
David Crow21-Jun-06 6:50
David Crow21-Jun-06 6:50 
QuestionRe: MFC CfileDialog Pin
Manjunath S21-Jun-06 7:20
Manjunath S21-Jun-06 7:20 
AnswerRe: MFC CfileDialog Pin
led mike21-Jun-06 7:33
led mike21-Jun-06 7:33 
GeneralRe: MFC CfileDialog Pin
Manjunath S21-Jun-06 7:42
Manjunath S21-Jun-06 7:42 
QuestionRe: MFC CfileDialog Pin
David Crow21-Jun-06 7:37
David Crow21-Jun-06 7:37 
QuestionRe: MFC CfileDialog Pin
Manjunath S21-Jun-06 7:47
Manjunath S21-Jun-06 7:47 
AnswerRe: MFC CfileDialog Pin
Justin Tay21-Jun-06 7:53
Justin Tay21-Jun-06 7:53 
AnswerRe: MFC CfileDialog Pin
David Crow21-Jun-06 7:58
David Crow21-Jun-06 7:58 
AnswerRe: MFC CfileDialog Pin
Zac Howland21-Jun-06 8:52
Zac Howland21-Jun-06 8:52 

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.