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

C / C++ / MFC

 
AnswerRe: how come I can not use the Release( ) methord of CComPtr? Pin
RChin16-Apr-06 3:06
RChin16-Apr-06 3:06 
AnswerRe: how come I can not use the Release( ) methord of CComPtr? Pin
Stephen Hewitt16-Apr-06 4:21
Stephen Hewitt16-Apr-06 4:21 
AnswerRe: how come I can not use the Release( ) methord of CComPtr? Pin
ewighell16-Apr-06 15:25
ewighell16-Apr-06 15:25 
QuestionMultiple instances of a DLL Pin
Virtek16-Apr-06 2:38
Virtek16-Apr-06 2:38 
AnswerRe: Multiple instances of a DLL Pin
eli1502197916-Apr-06 3:21
eli1502197916-Apr-06 3:21 
GeneralRe: Multiple instances of a DLL Pin
Virtek16-Apr-06 4:19
Virtek16-Apr-06 4:19 
GeneralRe: Multiple instances of a DLL Pin
Michael Dunn16-Apr-06 6:14
sitebuilderMichael Dunn16-Apr-06 6:14 
Questionfinding files with a certain extension Pin
SWDevil16-Apr-06 2:26
SWDevil16-Apr-06 2:26 
Hi,

I need to find all files in a certain directory that are in the format of: file.001, file.002, etc (the numbers in the file extensions can go up to infinity...).
I am using the functions FindFile and FindNextFile to do this (my code is below). The problem is that in the same directory there might also be files named file.x or file.y (for example) which I don't need to find.
I only need the files with the number extensions.
Is there a way to do this?

this is my code:
sSearchPath.Format("file.*");
BOOL bWorking = f.FindFile(sSearchPath);
while (bWorking)
{
bWorking = f.FindNextFile();
CString strFileName = f.GetFileName();
}

Thanks
AnswerRe: finding files with a certain extension Pin
shortwave16-Apr-06 2:51
shortwave16-Apr-06 2:51 
GeneralRe: finding files with a certain extension Pin
SWDevil16-Apr-06 2:58
SWDevil16-Apr-06 2:58 
GeneralRe: finding files with a certain extension Pin
shortwave16-Apr-06 3:03
shortwave16-Apr-06 3:03 
GeneralRe: finding files with a certain extension Pin
SWDevil16-Apr-06 3:09
SWDevil16-Apr-06 3:09 
GeneralRe: finding files with a certain extension Pin
shortwave16-Apr-06 3:19
shortwave16-Apr-06 3:19 
GeneralRe: finding files with a certain extension Pin
SWDevil16-Apr-06 3:32
SWDevil16-Apr-06 3:32 
GeneralRe: finding files with a certain extension Pin
shortwave16-Apr-06 3:57
shortwave16-Apr-06 3:57 
GeneralRe: finding files with a certain extension Pin
SWDevil16-Apr-06 4:07
SWDevil16-Apr-06 4:07 
QuestionRe: finding files with a certain extension Pin
David Crow17-Apr-06 3:51
David Crow17-Apr-06 3:51 
GeneralRe: finding files with a certain extension Pin
David Crow17-Apr-06 3:50
David Crow17-Apr-06 3:50 
GeneralRe: finding files with a certain extension Pin
David Crow17-Apr-06 3:49
David Crow17-Apr-06 3:49 
AnswerRe: finding files with a certain extension Pin
Saurabh.Garg16-Apr-06 6:06
Saurabh.Garg16-Apr-06 6:06 
AnswerRe: finding files with a certain extension Pin
Michael Dunn16-Apr-06 6:15
sitebuilderMichael Dunn16-Apr-06 6:15 
QuestionHow to make notebad save his ducment from my program Pin
shortwave16-Apr-06 2:07
shortwave16-Apr-06 2:07 
AnswerRe: How to make notebad save his ducment from my program Pin
Michael Dunn16-Apr-06 6:16
sitebuilderMichael Dunn16-Apr-06 6:16 
AnswerRe: How to make notebad save his ducment from my program Pin
Hamid_RT16-Apr-06 6:44
Hamid_RT16-Apr-06 6:44 
QuestionScroll in edit box Pin
Naziayacoob16-Apr-06 0:01
Naziayacoob16-Apr-06 0:01 

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.