Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
QuestionHow to declare a struct with dynamic allocated array for COM with DLL? Pin
Kuang Cao5-Sep-06 3:54
Kuang Cao5-Sep-06 3:54 
QuestionMultipage control Pin
shivarishxxxx5-Sep-06 3:40
shivarishxxxx5-Sep-06 3:40 
AnswerRe: Multipage control Pin
mikone5-Sep-06 3:53
mikone5-Sep-06 3:53 
GeneralRe: Multipage control Pin
shivarishxxxx5-Sep-06 9:52
shivarishxxxx5-Sep-06 9:52 
QuestionRemoting Pin
fcn][Stampede5-Sep-06 3:09
fcn][Stampede5-Sep-06 3:09 
QuestionGetHashCode implementation [modified] Pin
Random_zh5-Sep-06 2:35
Random_zh5-Sep-06 2:35 
AnswerRe: GetHashCode implementation Pin
User 66585-Sep-06 4:36
User 66585-Sep-06 4:36 
GeneralRe: GetHashCode implementation [modified] Pin
Random_zh5-Sep-06 5:50
Random_zh5-Sep-06 5:50 
coz i forgot to think about sha may be. Smile | :)
and coz it would not solve my problem.
and i needed to hack it fast.
if you used any sha or md5 shortened to integer as Hashtable needs it, you would also find lot of numbers(or elements) with collisions.
i will have to search (and if not exists make) a Hastable accepting keys with more then 32 bits, and i will have to have lots of GetHashCode methods with more than 32 bits for that, for expample with SHA.

regards

EDIT:
no, i decided that using SHA wouldnt be faster than 10 ulong multiplications. (see code)
and my code now generates less collisions than if i had used sha. (if you build my 64bit hash from 2 integers, you will only find 50'625 collisions from 2^64 possibilites) (with sha shortened to 64bit you would have (stistical guess): more than 1'000'000'000 collisions between all 2^64 possibilities.)

-- modified at 12:25 Thursday 7th September, 2006
QuestionCatching minimize event Pin
sjembek5-Sep-06 2:30
sjembek5-Sep-06 2:30 
AnswerRe: Catching minimize event Pin
MIHAI_MTZ5-Sep-06 2:38
MIHAI_MTZ5-Sep-06 2:38 
GeneralRe: Catching minimize event Pin
sjembek5-Sep-06 2:53
sjembek5-Sep-06 2:53 
GeneralRe: Catching minimize event Pin
Dan Neely5-Sep-06 3:31
Dan Neely5-Sep-06 3:31 
GeneralRe: Catching minimize event Pin
sjembek5-Sep-06 5:52
sjembek5-Sep-06 5:52 
QuestionVOIP Vonage Answering Machine Pin
steveharper605-Sep-06 2:12
steveharper605-Sep-06 2:12 
AnswerRe: VOIP Vonage Answering Machine Pin
Erik Funkenbusch5-Sep-06 21:43
Erik Funkenbusch5-Sep-06 21:43 
QuestionRe: VOIP Vonage Answering Machine Pin
steveharper606-Sep-06 7:31
steveharper606-Sep-06 7:31 
QuestionHow to make client server Pin
King Shez5-Sep-06 1:50
King Shez5-Sep-06 1:50 
AnswerRe: How to make client server Pin
samtam5-Sep-06 2:25
samtam5-Sep-06 2:25 
AnswerRe: How to make client server Pin
Andrei Ungureanu5-Sep-06 2:50
Andrei Ungureanu5-Sep-06 2:50 
GeneralRe: How to make client server Pin
King Shez5-Sep-06 20:48
King Shez5-Sep-06 20:48 
GeneralRe: How to make client server Pin
Andrei Ungureanu6-Sep-06 7:37
Andrei Ungureanu6-Sep-06 7:37 
GeneralRe: How to make client server Pin
King Shez6-Sep-06 20:55
King Shez6-Sep-06 20:55 
GeneralRe: How to make client server Pin
Andrei Ungureanu7-Sep-06 3:02
Andrei Ungureanu7-Sep-06 3:02 
AnswerRe: How to make client server Pin
Rob Philpott5-Sep-06 4:36
Rob Philpott5-Sep-06 4:36 
GeneralRe: How to make client server Pin
King Shez5-Sep-06 21:10
King Shez5-Sep-06 21:10 

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.