Click here to Skip to main content
16,005,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Socket prob connection Pin
thes3cr3t123-Nov-03 0:14
thes3cr3t123-Nov-03 0:14 
QuestionHow Do you retrieve email accounts Pin
BaldwinMartin22-Nov-03 18:49
BaldwinMartin22-Nov-03 18:49 
QuestionHow to add a array as a property into a activex control? Pin
wood22-Nov-03 16:55
wood22-Nov-03 16:55 
AnswerRe: How to add a array as a property into a activex control? Pin
wood23-Nov-03 17:20
wood23-Nov-03 17:20 
Generaldll problems Pin
Selevercin22-Nov-03 16:51
Selevercin22-Nov-03 16:51 
GeneralRe: dll problems Pin
Atlence22-Nov-03 17:59
Atlence22-Nov-03 17:59 
GeneralHaving Problems with CFileFind Pin
darkjedisleikas22-Nov-03 15:41
darkjedisleikas22-Nov-03 15:41 
GeneralRe: Having Problems with CFileFind Pin
Atlence22-Nov-03 16:07
Atlence22-Nov-03 16:07 
Hi!

Your program crashes because it finds a file. When you use the function GetFileName, you have to use the function FindNextFile first, as it is explained on the MSDN.

Your code should be:

<br />
void CID3MasterDlg::UpdateMP3List()<br />
{<br />
_____CFileFind finder;<br />
_____CString searchstr = m_strMP3Dir + "*.mp3";<br />
<br />
_____m_MP3ListBox.AddString(searchstr); // Add the search string for debugging purposes<br />
_____if(finder.FindFile(searchstr))<br />
_____{<br />
__________while(finder.FindNextFile())<br />
_______________m_MP3ListBox.AddString(finder.GetFileName());<br />
_____}<br />
_____finder.Close();<br />
_____UpdateData(true);<br />
}<br />


Appstmd
http://www.appstmd.com
GeneralRe: Having Problems with CFileFind Pin
darkjedisleikas22-Nov-03 16:12
darkjedisleikas22-Nov-03 16:12 
GeneralRe: Having Problems with CFileFind Pin
Anonymous22-Nov-03 16:36
Anonymous22-Nov-03 16:36 
GeneralWord Automation with MFC Pin
Member 54540422-Nov-03 14:33
Member 54540422-Nov-03 14:33 
GeneralRe: Word Automation with MFC Pin
Peter Molnar22-Nov-03 16:25
Peter Molnar22-Nov-03 16:25 
GeneralRe: Word Automation with MFC Pin
Member 54540423-Nov-03 2:25
Member 54540423-Nov-03 2:25 
GeneralRe: Word Automation with MFC Pin
Peter Molnar23-Nov-03 8:28
Peter Molnar23-Nov-03 8:28 
GeneralRe: Word Automation with MFC Pin
Member 54540423-Nov-03 14:55
Member 54540423-Nov-03 14:55 
GeneralRe: Word Automation with MFC Pin
Peter Molnar24-Nov-03 2:05
Peter Molnar24-Nov-03 2:05 
GeneralRe: Word Automation with MFC Pin
Member 54540424-Nov-03 14:12
Member 54540424-Nov-03 14:12 
GeneralRe: Word Automation with MFC Pin
Peter Molnar24-Nov-03 14:25
Peter Molnar24-Nov-03 14:25 
GeneralI need help;( Pin
EEYOREBABE22-Nov-03 11:04
EEYOREBABE22-Nov-03 11:04 
GeneralRe: I need help;( Pin
Peter Molnar22-Nov-03 12:46
Peter Molnar22-Nov-03 12:46 
GeneralFormatRange with Html Edit Control Pin
Atlence22-Nov-03 9:15
Atlence22-Nov-03 9:15 
GeneralRe: FormatRange with Html Edit Control Pin
Peter Molnar22-Nov-03 12:50
Peter Molnar22-Nov-03 12:50 
GeneralRe: FormatRange with Html Edit Control Pin
Atlence22-Nov-03 16:11
Atlence22-Nov-03 16:11 
GeneralRe: FormatRange with Html Edit Control Pin
Peter Molnar23-Nov-03 9:48
Peter Molnar23-Nov-03 9:48 
Generalgetting address of Internet Shortcut Pin
K. Shaffer22-Nov-03 9:04
K. Shaffer22-Nov-03 9:04 

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.