Click here to Skip to main content
16,005,206 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Multibyte strings not displaying correctly Pin
Prakash Nadar27-Oct-05 16:16
Prakash Nadar27-Oct-05 16:16 
QuestionConverting try/catch to __try/something Pin
integerous27-Oct-05 6:31
integerous27-Oct-05 6:31 
AnswerRe: Converting try/catch to __try/something Pin
toxcct27-Oct-05 7:43
toxcct27-Oct-05 7:43 
GeneralRe: Converting try/catch to __try/something Pin
integerous27-Oct-05 12:57
integerous27-Oct-05 12:57 
QuestionSecure IPC Pin
Chintoo72327-Oct-05 5:59
Chintoo72327-Oct-05 5:59 
AnswerRe: Secure IPC Pin
ThatsAlok27-Oct-05 22:25
ThatsAlok27-Oct-05 22:25 
QuestionWhat's this? Pin
Le Sourcier27-Oct-05 5:41
Le Sourcier27-Oct-05 5:41 
Question Hash string function that keeps compare properties Pin
Kochise27-Oct-05 5:27
Kochise27-Oct-05 5:27 
Is there a hash string function that preserves the capability to compare two strings just by comparing their respective hash values ?

Currently, I have to perform a full Str.Compare("other string") in order to sort them. I had also calculated their hash value, but the sorting (Quick Sort, Bubble Sort, whatever...) fails using the hash value. The hash value is mostly random, especially on long strings.

Comparing the hash values (int) would have been quite faster, I have to perform the quickest sort possible on text files larger than 100 MB ! So please don't come with CString as a solution. It works, but asks hours to do the job. CString is perfect to manipulate UI strings, but bad for heavy duty purposes...

So, to sum up, it there a good hash function that will allow :

"Minus string" < "Plus string"
HASH("Minus string") < HASH("Plus string")

Kochise


In Code we trust !
AnswerRe: Hash string function that keeps compare properties Pin
Chris Losinger27-Oct-05 7:30
professionalChris Losinger27-Oct-05 7:30 
GeneralRe: Hash string function that keeps compare properties Pin
Kochise27-Oct-05 21:17
Kochise27-Oct-05 21:17 
GeneralRe: Hash string function that keeps compare properties Pin
Chris Losinger28-Oct-05 1:17
professionalChris Losinger28-Oct-05 1:17 
GeneralRe: Hash string function that keeps compare properties Pin
Kochise28-Oct-05 3:06
Kochise28-Oct-05 3:06 
QuestionHow to pass a parm to iexplorer? Pin
mcgahanfl27-Oct-05 5:24
mcgahanfl27-Oct-05 5:24 
AnswerRe: How to pass a parm to iexplorer? Pin
BlackT27-Oct-05 5:29
BlackT27-Oct-05 5:29 
QuestionText Rotation - VC 6.0 Pin
BlackT27-Oct-05 4:17
BlackT27-Oct-05 4:17 
AnswerRe: Text Rotation - VC 6.0 Pin
Mircea Puiu27-Oct-05 7:23
Mircea Puiu27-Oct-05 7:23 
Questionquestion with the MFC documentation Pin
ewighell27-Oct-05 3:39
ewighell27-Oct-05 3:39 
AnswerRe: question with the MFC documentation Pin
Maximilien27-Oct-05 3:52
Maximilien27-Oct-05 3:52 
AnswerRe: question with the MFC documentation Pin
Chris Losinger27-Oct-05 3:55
professionalChris Losinger27-Oct-05 3:55 
AnswerRe: question with the MFC documentation Pin
toxcct27-Oct-05 3:58
toxcct27-Oct-05 3:58 
QuestionRe: question with the MFC documentation Pin
David Crow27-Oct-05 4:49
David Crow27-Oct-05 4:49 
AnswerRe: question with the MFC documentation Pin
ewighell27-Oct-05 5:02
ewighell27-Oct-05 5:02 
AnswerRe: question with the MFC documentation Pin
ewighell27-Oct-05 5:05
ewighell27-Oct-05 5:05 
QuestionHow to kill a thread ??? Pin
vikas amin27-Oct-05 2:21
vikas amin27-Oct-05 2:21 
AnswerRe: How to kill a thread ??? Pin
David Crow27-Oct-05 2:32
David Crow27-Oct-05 2:32 

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.