Click here to Skip to main content
15,890,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CEdit* pEdit = m_Pressure.GetEditControl(); is returning Null always Pin
Naveen11-Sep-07 18:14
Naveen11-Sep-07 18:14 
GeneralRe: CEdit* pEdit = m_Pressure.GetEditControl(); is returning Null always Pin
shir_k11-Sep-07 19:14
shir_k11-Sep-07 19:14 
Questionerror message from OLEView Pin
George_George10-Sep-07 21:04
George_George10-Sep-07 21:04 
Questiontlbexp command Pin
George_George10-Sep-07 20:32
George_George10-Sep-07 20:32 
QuestionSCM: Does it handle crashing/abruptly killed services ? Pin
Yashusid10-Sep-07 20:00
Yashusid10-Sep-07 20:00 
QuestionJava Style Socket Programming in C++ Pin
maglev_tgv10-Sep-07 19:59
maglev_tgv10-Sep-07 19:59 
AnswerRe: Java Style Socket Programming in C++ Pin
baerten10-Sep-07 23:23
baerten10-Sep-07 23:23 
QuestionFinding files Pin
Waldermort10-Sep-07 19:48
Waldermort10-Sep-07 19:48 
I have coded a loop to find all files and folders on a certain drive. The loop works flawlessly but it takes too much time. On my machine, scanning drive C with close to 100000 files, it takes a good 7 seconds. The loop works in a way that it does a recursive search of each directory, copies the filename and path and adds this to a linked list for later processing.

I'm looking for a way to speed this process up. The use of threads may well do this, but it would be more than complicated to code. How would you decide when a thread is required, how would you manage the handles and synchronisation problems?

I would be interested to know how others would approach this problem.

Waldermort

AnswerRe: Finding files Pin
Nishad S10-Sep-07 20:01
Nishad S10-Sep-07 20:01 
GeneralRe: Finding files Pin
Waldermort10-Sep-07 23:50
Waldermort10-Sep-07 23:50 
GeneralRe: Finding files Pin
Nishad S11-Sep-07 1:39
Nishad S11-Sep-07 1:39 
QuestionRegistry Pin
john563210-Sep-07 19:47
john563210-Sep-07 19:47 
AnswerRe: Registry Pin
Arman S.10-Sep-07 20:22
Arman S.10-Sep-07 20:22 
AnswerRe: Registry Pin
VirtualVoid.NET10-Sep-07 21:48
VirtualVoid.NET10-Sep-07 21:48 
AnswerRe: Registry Pin
David Crow11-Sep-07 3:19
David Crow11-Sep-07 3:19 
QuestionHow to get HInstance of ToolBar item?? Pin
Neo Andreson10-Sep-07 19:47
Neo Andreson10-Sep-07 19:47 
AnswerRe: How to get HInstance of ToolBar item?? Pin
Nishad S10-Sep-07 20:03
Nishad S10-Sep-07 20:03 
QuestionNeed help for network programming (ipx/udp game on Internet) Pin
followait10-Sep-07 17:09
followait10-Sep-07 17:09 
GeneralRe: Need help for network programming (ipx/udp game on Internet) Pin
Matthew Faithfull10-Sep-07 23:07
Matthew Faithfull10-Sep-07 23:07 
GeneralRe: Need help for network programming (ipx/udp game on Internet) Pin
followait11-Sep-07 1:10
followait11-Sep-07 1:10 
GeneralRe: Need help for network programming (ipx/udp game on Internet) Pin
Matthew Faithfull11-Sep-07 2:18
Matthew Faithfull11-Sep-07 2:18 
QuestionLibrary file redefinition error Pin
palanirajan10-Sep-07 16:54
palanirajan10-Sep-07 16:54 
AnswerRe: Library file redefinition error Pin
fefe.wyx10-Sep-07 17:05
fefe.wyx10-Sep-07 17:05 
GeneralRe: Library file redefinition error Pin
palanirajan10-Sep-07 17:32
palanirajan10-Sep-07 17:32 
AnswerRe: Library file redefinition error Pin
john563210-Sep-07 19:57
john563210-Sep-07 19:57 

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.