Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: need help with thread functions Pin
julvr230-Jul-07 4:59
julvr230-Jul-07 4:59 
GeneralRe: need help with thread functions Pin
alberthyc30-Jul-07 6:06
alberthyc30-Jul-07 6:06 
GeneralRe: need help with thread functions Pin
led mike30-Jul-07 5:23
led mike30-Jul-07 5:23 
AnswerRe: need help with thread functions Pin
Iain Clarke, Warrior Programmer30-Jul-07 5:45
Iain Clarke, Warrior Programmer30-Jul-07 5:45 
QuestionRun an exe from MFC app Pin
koumodaki30-Jul-07 4:09
koumodaki30-Jul-07 4:09 
AnswerRe: Run an exe from MFC app Pin
Iain Clarke, Warrior Programmer30-Jul-07 4:16
Iain Clarke, Warrior Programmer30-Jul-07 4:16 
AnswerRe: Run an exe from MFC app Pin
Roberto Italy30-Jul-07 21:12
Roberto Italy30-Jul-07 21:12 
AnswerRe: Run an exe from MFC app Pin
Hamid_RT31-Jul-07 21:14
Hamid_RT31-Jul-07 21:14 
Questionpost thread message() Pin
shakumar_2230-Jul-07 3:59
shakumar_2230-Jul-07 3:59 
AnswerRe: post thread message() Pin
Iain Clarke, Warrior Programmer30-Jul-07 4:20
Iain Clarke, Warrior Programmer30-Jul-07 4:20 
GeneralRe: post thread message() Pin
shakumar_2230-Jul-07 4:38
shakumar_2230-Jul-07 4:38 
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 

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.