Ok, thank you for the start. I've gotten the first file to show up and have tried some loops and other junk with the "FindNextFile". The problem now is I keep overwriting my edit box variable m_dir. How can I keep each file listed in the box??? Can someone please help here???
This is what I've got...
Code:
WIN32_FIND_DATA FindFileData;
HANDLE hFind;
//select & open file
if(m_quote == 0)
{
// Quote Directory
sprintf(file,"c:/mydocu~1/programming/peekaview/%s.tre",m_truss);
hFind = FindFirstFile("c:/mydocu~1/programming/peekaview/debug/*.tre", &FindFileData);
m_dir = FindFileData.cFileName;
FindNextFile(hFind, &FindFileData);
m_dir = FindFileData.cFileName;
if( (stream = fopen(file,"r")) == NULL )
{
MessageBox(" Trusses Not Found!\nFill In The Information Below", "Error", MB_ICONEXCLAMATION);
return;
}
}
FindClose(hFind);
fclose(stream);