Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: post thread message() Pin
Iain Clarke, Warrior Programmer30-Jul-07 5:06
Iain Clarke, Warrior Programmer30-Jul-07 5:06 
QuestionHow to put an MFC Dialog box project into another existing project Pin
vladimir7230-Jul-07 2:29
vladimir7230-Jul-07 2:29 
AnswerRe: How to put an MFC Dialog box project into another existing project Pin
Nelek30-Jul-07 2:40
protectorNelek30-Jul-07 2:40 
GeneralRe: How to put an MFC Dialog box project into another existing project Pin
vladimir7230-Jul-07 2:51
vladimir7230-Jul-07 2:51 
GeneralRe: How to put an MFC Dialog box project into another existing project Pin
Hans Dietrich30-Jul-07 3:12
mentorHans Dietrich30-Jul-07 3:12 
AnswerRe: How to put an MFC Dialog box project into another existing project Pin
vladimir7230-Jul-07 3:58
vladimir7230-Jul-07 3:58 
GeneralRe: How to put an MFC Dialog box project into another existing project Pin
Nelek30-Jul-07 20:23
protectorNelek30-Jul-07 20:23 
Questionre: Fast Searching... Pin
Bryster30-Jul-07 1:54
Bryster30-Jul-07 1:54 
Hi Here is the Problem:

To access a Datafile which contains 26 Million addresses and find a given address. The Datafile is an ascii text file and is fixed

What I have come up with:
1. Sort the 26 Million addresses into Postcode order. (I have application for this)
2. Using FSEEK look at the MIDDLE of the file and compare using STRNCMP the POSTCODE for searching, against the POSTCODE within the Datafile.
3. Using the result move the file pointer backwards from the middle (half it) or forwards and keep checking until a match is found.
This will loop for roughly 24-25 times and not 26 Million.

Is there a better way?


AnswerRe: re: Fast Searching... Pin
Randor 30-Jul-07 1:58
professional Randor 30-Jul-07 1:58 
GeneralRe: re: Fast Searching... Pin
Bryster30-Jul-07 2:25
Bryster30-Jul-07 2:25 
AnswerRe: re: Fast Searching... Pin
Hans Dietrich30-Jul-07 3:17
mentorHans Dietrich30-Jul-07 3:17 
GeneralRe: re: Fast Searching... Pin
Bryster30-Jul-07 4:12
Bryster30-Jul-07 4:12 
Questionre: Problems with Progress Bar Pin
Bryster30-Jul-07 1:25
Bryster30-Jul-07 1:25 
AnswerRe: re: Problems with Progress Bar Pin
Hans Dietrich30-Jul-07 3:21
mentorHans Dietrich30-Jul-07 3:21 
GeneralRe: re: Problems with Progress Bar Pin
Bryster30-Jul-07 4:24
Bryster30-Jul-07 4:24 
AnswerRe: re: Problems with Progress Bar Pin
krmed30-Jul-07 4:53
krmed30-Jul-07 4:53 
QuestionRe: re: Problems with Progress Bar Pin
Mark Salsbery30-Jul-07 6:20
Mark Salsbery30-Jul-07 6:20 
Questioncan not delete a file Pin
George_George30-Jul-07 0:13
George_George30-Jul-07 0:13 
AnswerRe: can not delete a file Pin
Jonathan [Darka]30-Jul-07 0:18
professionalJonathan [Darka]30-Jul-07 0:18 
GeneralRe: can not delete a file Pin
George_George30-Jul-07 0:23
George_George30-Jul-07 0:23 
GeneralRe: can not delete a file [modified] Pin
Jonathan [Darka]30-Jul-07 0:57
professionalJonathan [Darka]30-Jul-07 0:57 
GeneralRe: can not delete a file Pin
George_George30-Jul-07 1:23
George_George30-Jul-07 1:23 
GeneralRe: can not delete a file Pin
Jonathan [Darka]30-Jul-07 2:06
professionalJonathan [Darka]30-Jul-07 2:06 
GeneralRe: can not delete a file Pin
George_George30-Jul-07 2:37
George_George30-Jul-07 2:37 
GeneralRe: can not delete a file Pin
Jonathan [Darka]30-Jul-07 2:25
professionalJonathan [Darka]30-Jul-07 2:25 

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.