Click here to Skip to main content
15,911,848 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: signed char* to cstring Pin
Ryan Binns5-Feb-06 21:45
Ryan Binns5-Feb-06 21:45 
GeneralRe: signed char* to cstring Pin
ThatsAlok6-Feb-06 0:34
ThatsAlok6-Feb-06 0:34 
GeneralRe: signed char* to cstring Pin
Ryan Binns6-Feb-06 13:13
Ryan Binns6-Feb-06 13:13 
QuestionFindNextFile( ) not working in 2nd iteration Pin
zahid_ash5-Feb-06 19:28
zahid_ash5-Feb-06 19:28 
AnswerRe: FindNextFile( ) not working in 2nd iteration Pin
swaapu5-Feb-06 20:04
swaapu5-Feb-06 20:04 
AnswerRe: FindNextFile( ) not working in 2nd iteration Pin
Ryan Binns5-Feb-06 21:49
Ryan Binns5-Feb-06 21:49 
GeneralRe: FindNextFile( ) not working in 2nd iteration Pin
zahid_ash5-Feb-06 23:26
zahid_ash5-Feb-06 23:26 
GeneralRe: FindNextFile( ) not working in 2nd iteration Pin
Wim Engberts6-Feb-06 0:08
Wim Engberts6-Feb-06 0:08 
No, if you call CFileFind::FindFile ("*.txt"), then it will give you the next file at each itteration of CFileFind::FindNextFile ().
There are two remarks to be made:
1. You MUST call FindNextFile at least once before you can use the outcome of CFileFind. You cannot use the filename immediately after the call to FindFile. So what you do is:

bLoop = Finder.FindFile ("*.txt", 0)
while (bLoop)
{
bLoop = Finder.FindNextFile ();
now you can use Finder.GetPath () or whatever
}

2. There is no telling on the order in which you will receive the filenames. They will come in the order in which they happen to have been registered in the directory. If you need to handle the files in any particular order (e.g. alphabetically or based on age or whatever), you will need to first get all the filenames in a linked list or something like that, then sort them to the desired order and then use the files

Regards
Questionhelp me about bayesian algorith Pin
baldha rakesh5-Feb-06 17:46
baldha rakesh5-Feb-06 17:46 
QuestionHelp me Pin
luanspkt5-Feb-06 17:37
luanspkt5-Feb-06 17:37 
AnswerRe: Help me Pin
toxcct5-Feb-06 22:53
toxcct5-Feb-06 22:53 
GeneralRe: Help me Pin
ThatsAlok6-Feb-06 0:32
ThatsAlok6-Feb-06 0:32 
Questioncapture all packets Pin
vtalau5-Feb-06 16:45
vtalau5-Feb-06 16:45 
AnswerRe: capture all packets Pin
ThatsAlok5-Feb-06 17:33
ThatsAlok5-Feb-06 17:33 
GeneralRe: capture all packets Pin
vtalau7-Feb-06 17:46
vtalau7-Feb-06 17:46 
Questionsimulation keyboard simulation trouble with app using DirectInput Pin
blue_rabbit5-Feb-06 15:50
blue_rabbit5-Feb-06 15:50 
AnswerRe: simulation keyboard simulation trouble with app using DirectInput Pin
Christian Graus5-Feb-06 16:40
protectorChristian Graus5-Feb-06 16:40 
GeneralRe: simulation keyboard simulation trouble with app using DirectInput Pin
blue_rabbit6-Feb-06 15:25
blue_rabbit6-Feb-06 15:25 
QuestionDirectX problems Pin
gr8coaster3295-Feb-06 14:26
gr8coaster3295-Feb-06 14:26 
AnswerRe: DirectX problems Pin
suchuhui5-Feb-06 19:12
suchuhui5-Feb-06 19:12 
GeneralRe: DirectX problems Pin
gr8coaster3296-Feb-06 12:28
gr8coaster3296-Feb-06 12:28 
AnswerRe: DirectX problems Pin
gr8coaster3296-Feb-06 13:53
gr8coaster3296-Feb-06 13:53 
QuestionHelp needed to check this code below... !!! Pin
amano8u5-Feb-06 13:51
amano8u5-Feb-06 13:51 
AnswerRe: Help needed to check this code below... !!! Pin
PJ Arends5-Feb-06 14:36
professionalPJ Arends5-Feb-06 14:36 
GeneralRe: Help needed to check this code below... !!! Pin
amano8u5-Feb-06 14:41
amano8u5-Feb-06 14:41 

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.