Click here to Skip to main content
15,917,174 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CSplitterWnd Pin
Tomasz Sowinski12-Jul-01 4:38
Tomasz Sowinski12-Jul-01 4:38 
GeneralRe: CSplitterWnd Pin
ov12-Jul-01 4:40
ov12-Jul-01 4:40 
GeneralRe: CSplitterWnd Pin
Tomasz Sowinski12-Jul-01 7:13
Tomasz Sowinski12-Jul-01 7:13 
GeneralRUN APPLICATION from SCREEN SAVER Pin
12-Jul-01 3:55
suss12-Jul-01 3:55 
GeneralRe: RUN APPLICATION from SCREEN SAVER Pin
Paolo Messina12-Jul-01 10:48
professionalPaolo Messina12-Jul-01 10:48 
GeneralFrame windows Pin
Troels_Gram12-Jul-01 2:21
Troels_Gram12-Jul-01 2:21 
GeneralRe: Frame windows Pin
Tomasz Sowinski12-Jul-01 2:34
Tomasz Sowinski12-Jul-01 2:34 
GeneralCFileFind (Maybe I'll get an answer this time) Pin
Michael Martin12-Jul-01 2:14
professionalMichael Martin12-Jul-01 2:14 
I asked this question yesterday but got no response so will try again. I have used this function successfully in the past, so don't know why I can't get it to work now.

I have the follow file on disk D:\Import\ReadMe.txt, when I search for it, it doesn't get found.

According to help I need to call FindNextFile() after I call FindFile() before I can access any of the other member functions

::SetCurrentDirectory("D:\\Import");
 
CFileFind	Find;
 
// Start search
Find.FindFile("ReadMe.txt");
 
// Cycle through files
while (Find.FindNextFile())
{
    if (!Find.IsDots() &&
        !Find.IsDirectory())
    {
        CString strMsg = Find.GetFilePath();
        strMsg += " found.";
        AfxMessageBox(strMsg, MB_OK | MB_APPLMODAL | MB_ICONSTOP);
    }
}
 
Find.Close();

Any ideas what I have stuffed up and more importantly any answers to my problem?


Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
GeneralRe: CFileFind (Maybe I'll get an answer this time) Pin
Tomasz Sowinski12-Jul-01 2:30
Tomasz Sowinski12-Jul-01 2:30 
GeneralRe: CFileFind (Maybe I'll get an answer this time) Pin
Michael Martin12-Jul-01 3:37
professionalMichael Martin12-Jul-01 3:37 
GeneralRe: CFileFind (Maybe I'll get an answer this time) Pin
Tomasz Sowinski12-Jul-01 3:49
Tomasz Sowinski12-Jul-01 3:49 
GeneralRe: CFileFind (Maybe I'll get an answer this time) Pin
Michael Martin12-Jul-01 3:53
professionalMichael Martin12-Jul-01 3:53 
GeneralRe: CFileFind (Maybe I'll get an answer this time) Pin
Tomasz Sowinski12-Jul-01 4:06
Tomasz Sowinski12-Jul-01 4:06 
GeneralRe: CFileFind (Maybe I'll get an answer this time) Pin
Michael Martin12-Jul-01 4:18
professionalMichael Martin12-Jul-01 4:18 
GeneralRe: CFileFind (Maybe I'll get an answer this time) Pin
Tomasz Sowinski12-Jul-01 4:25
Tomasz Sowinski12-Jul-01 4:25 
GeneralRe: CFileFind (Maybe I'll get an answer this time) Pin
Michael Dunn12-Jul-01 6:11
sitebuilderMichael Dunn12-Jul-01 6:11 
GeneralDevelop with style Pin
- Emanuele -12-Jul-01 1:59
- Emanuele -12-Jul-01 1:59 
GeneralRe: Develop with style Pin
Tomasz Sowinski12-Jul-01 2:06
Tomasz Sowinski12-Jul-01 2:06 
GeneralRe: Develop with style Pin
NormDroid12-Jul-01 2:09
professionalNormDroid12-Jul-01 2:09 
Generalwhere can find the fastest "LineTO" code? ro how to do! Pin
G.Richard11-Jul-01 23:35
G.Richard11-Jul-01 23:35 
GeneralRe: where can find the fastest Pin
Tomasz Sowinski12-Jul-01 1:01
Tomasz Sowinski12-Jul-01 1:01 
GeneralRe: where can find the fastest Pin
G.Richard12-Jul-01 20:01
G.Richard12-Jul-01 20:01 
GeneralRe: where can find the fastest Pin
Tomasz Sowinski12-Jul-01 23:44
Tomasz Sowinski12-Jul-01 23:44 
GeneralTranspareten window -(CBitmap::BitBlt) Pin
11-Jul-01 23:12
suss11-Jul-01 23:12 
GeneralRe: Transpareten window -(CBitmap::BitBlt) Pin
Tomasz Sowinski12-Jul-01 1:11
Tomasz Sowinski12-Jul-01 1:11 

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.