Click here to Skip to main content
15,924,036 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: socket question (listen, accept) Pin
Joaquín M López Muñoz20-Mar-03 20:00
Joaquín M López Muñoz20-Mar-03 20:00 
GeneralRe: socket question (listen, accept) Pin
Daniel Strigl20-Mar-03 20:10
Daniel Strigl20-Mar-03 20:10 
GeneralRe: socket question (listen, accept) Pin
Olli20-Mar-03 20:19
Olli20-Mar-03 20:19 
GeneralRe: socket question (listen, accept) Pin
Daniel Strigl20-Mar-03 21:08
Daniel Strigl20-Mar-03 21:08 
QuestionHow toget notification when any program or executable terminates Pin
Kumar Siddhartha20-Mar-03 18:51
Kumar Siddhartha20-Mar-03 18:51 
AnswerRe: How toget notification when any program or executable terminates Pin
Nish Nishant20-Mar-03 20:02
sitebuilderNish Nishant20-Mar-03 20:02 
GeneralRe: How toget notification when any program or executable terminates Pin
Anonymous20-Mar-03 20:56
Anonymous20-Mar-03 20:56 
GeneralEfficient string searching (advice required) Pin
paulhans20-Mar-03 18:21
paulhans20-Mar-03 18:21 
Dear friends,

I want advice regarding the efficient way of string searching. I got a text file in which about ten thousand english words are written (one word per line). All the words are arranged in alpabetical order.

Now you all people are aware of the intellisense feature of Visual studio. I also want to give like same feature in my application. There is a rich text box in my application. What i want is that whenever user type any word, a combo box automatically gets open and show all the words that starts from the first letter typed by the user, when user type second letter, the combo list decrease and only show those words having first and second letters same as what typed by user.

Letme give you example. If you have Win2k/XP, just go to start menu, and open the "Run" dialog box. Then type, c:\winnt\system32\s you will notice that as you type it, the combobox automatically expands showing the names of files or folders. The maximum files are in system32 and when you type any file name after typing system32\ then you may notice that how fast the operation of file sorting performed by the application to expand or contract the combo box.

I also want something like what i described above in my application. I have 10,000 words in text file. Now can anyone tell me that how can i efficiently perform this operation i.e how and when i load file. Do i need any appropriate STL container. How to perform string searching on the basis of characters typed by user e.t.c

Thanks.
GeneralRe: Efficient string searching (advice required) Pin
Joaquín M López Muñoz20-Mar-03 20:08
Joaquín M López Muñoz20-Mar-03 20:08 
GeneralRe: Efficient string searching (advice required) Pin
Gunnar Bolle20-Mar-03 21:45
Gunnar Bolle20-Mar-03 21:45 
GeneralRe: Efficient string searching (advice required) Pin
Joaquín M López Muñoz20-Mar-03 21:54
Joaquín M López Muñoz20-Mar-03 21:54 
GeneralRe: Efficient string searching (advice required) Pin
Gunnar Bolle20-Mar-03 21:59
Gunnar Bolle20-Mar-03 21:59 
GeneralRe: Efficient string searching (advice required) Pin
jhwurmbach20-Mar-03 23:06
jhwurmbach20-Mar-03 23:06 
GeneralRe: Efficient string searching (advice required) Pin
John R. Shaw21-Mar-03 11:23
John R. Shaw21-Mar-03 11:23 
GeneralRe: Efficient string searching (advice required) Pin
John R. Shaw21-Mar-03 11:31
John R. Shaw21-Mar-03 11:31 
QuestionHow to Translae a Mapped Drive to a UNC Path Pin
Xilin20-Mar-03 17:20
Xilin20-Mar-03 17:20 
AnswerRe: How to Translae a Mapped Drive to a UNC Path Pin
saierdia20-Mar-03 18:28
saierdia20-Mar-03 18:28 
GeneralGet line height from CRichEditCtrl Pin
lauch220-Mar-03 17:01
lauch220-Mar-03 17:01 
Generalcreate Predefined Macros Pin
mmwhw20-Mar-03 16:32
mmwhw20-Mar-03 16:32 
GeneralRe: create Predefined Macros Pin
Mike Nordell21-Mar-03 4:13
Mike Nordell21-Mar-03 4:13 
GeneralRe: create Predefined Macros Pin
Jambolo23-Mar-03 9:57
Jambolo23-Mar-03 9:57 
Generalget number from string Pin
wow999920-Mar-03 16:27
wow999920-Mar-03 16:27 
GeneralRe: get number from string Pin
mmwhw20-Mar-03 16:40
mmwhw20-Mar-03 16:40 
GeneralRe: get number from string Pin
Nish Nishant20-Mar-03 17:22
sitebuilderNish Nishant20-Mar-03 17:22 
Generalpointer's high bit Pin
Phil Hamer20-Mar-03 14:50
Phil Hamer20-Mar-03 14:50 

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.