Click here to Skip to main content
15,916,180 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Newbie in direct.h Pin
Christian Graus25-Oct-05 12:43
protectorChristian Graus25-Oct-05 12:43 
QuestionManaged Extensions and native code. Bug? Pin
abartosh24-Oct-05 23:16
abartosh24-Oct-05 23:16 
AnswerRe: Managed Extensions and native code. Bug? Pin
IdUnknown26-Oct-05 9:28
IdUnknown26-Oct-05 9:28 
AnswerRe: Managed Extensions and native code. Bug? Pin
Joel Lucsy27-Oct-05 4:26
Joel Lucsy27-Oct-05 4:26 
Questionmemory allocation problem :( Pin
wangzhi041724-Oct-05 18:08
wangzhi041724-Oct-05 18:08 
AnswerRe: memory allocation problem :( Pin
Kochise24-Oct-05 21:16
Kochise24-Oct-05 21:16 
AnswerRe: memory allocation problem :( Pin
toxcct24-Oct-05 22:55
toxcct24-Oct-05 22:55 
QuestionHash string function that keeps compare properties Pin
Kochise24-Oct-05 2:54
Kochise24-Oct-05 2:54 
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 !
Questionwindows forms scrollbar problem? Pin
9ine24-Oct-05 0:14
9ine24-Oct-05 0:14 
QuestionPreventing all users from terminating a service using task manager in Windows 2003 Pin
e_prabhu24-Oct-05 0:06
e_prabhu24-Oct-05 0:06 
AnswerRe: Preventing all users from terminating a service using task manager in Windows 2003 Pin
Judah Gabriel Himango24-Oct-05 12:28
sponsorJudah Gabriel Himango24-Oct-05 12:28 
GeneralRe: Preventing all users from terminating a service using task manager in Windows 2003 Pin
e_prabhu25-Oct-05 2:10
e_prabhu25-Oct-05 2:10 
GeneralRe: Preventing all users from terminating a service using task manager in Windows 2003 Pin
Sheng Jiang 蒋晟31-Oct-05 6:10
Sheng Jiang 蒋晟31-Oct-05 6:10 
QuestionC++ networking Pin
Deon Minnie23-Oct-05 20:08
Deon Minnie23-Oct-05 20:08 
QuestionHow to create Gaussian random number Pin
bulgaa23-Oct-05 18:23
bulgaa23-Oct-05 18:23 
AnswerRe: How to create Gaussian random number Pin
RichardS24-Oct-05 1:01
RichardS24-Oct-05 1:01 
Questionrookie question Pin
Binary011022-Oct-05 16:53
Binary011022-Oct-05 16:53 
AnswerRe: rookie question Pin
toxcct23-Oct-05 0:23
toxcct23-Oct-05 0:23 
AnswerRe: rookie question Pin
Christian Graus23-Oct-05 12:55
protectorChristian Graus23-Oct-05 12:55 
GeneralRe: rookie question Pin
toxcct24-Oct-05 1:16
toxcct24-Oct-05 1:16 
QuestionAccessing external devices(I don't have any idea) Pin
Alex Cutovoi21-Oct-05 6:01
Alex Cutovoi21-Oct-05 6:01 
QuestionFastest way to check a file exists Pin
[d3m0n]21-Oct-05 4:32
[d3m0n]21-Oct-05 4:32 
AnswerRe: Fastest way to check a file exists Pin
toxcct21-Oct-05 4:44
toxcct21-Oct-05 4:44 
GeneralRe: Fastest way to check a file exists Pin
[d3m0n]21-Oct-05 5:00
[d3m0n]21-Oct-05 5:00 
GeneralRe: Fastest way to check a file exists Pin
toxcct23-Oct-05 0:22
toxcct23-Oct-05 0:22 

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.