Click here to Skip to main content
16,011,647 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnInitDialog in VC7 Pin
mits21-Mar-02 2:36
mits21-Mar-02 2:36 
GeneralISAPI Debugging Pin
Tili19-Mar-02 23:52
Tili19-Mar-02 23:52 
GeneralMy own ListCtrl into CListView Pin
19-Mar-02 23:17
suss19-Mar-02 23:17 
GeneralRe: My own ListCtrl into CListView Pin
Joaquín M López Muñoz19-Mar-02 23:41
Joaquín M López Muñoz19-Mar-02 23:41 
GeneralNeed to remove buttons from a propertysheet Pin
Hans Ruck19-Mar-02 23:20
Hans Ruck19-Mar-02 23:20 
GeneralRe: Need to remove buttons from a propertysheet Pin
Joaquín M López Muñoz19-Mar-02 23:30
Joaquín M López Muñoz19-Mar-02 23:30 
GeneralRe: Need to remove buttons from a propertysheet Pin
Hans Ruck19-Mar-02 23:55
Hans Ruck19-Mar-02 23:55 
Generalgen. a HASH from MAC address Pin
peterchen19-Mar-02 23:09
peterchen19-Mar-02 23:09 
Hi!
I need to create a 22-bit-Hash of some PC-specific ID. I though of UuidCreateSequential, and hash the MAC part of the generated ID.

Now I absolutely don't know what makes a good hash function. It doesn't need to be very fast, and not overly sensitive. Any suggestions or links?

-------------

From Hash functions I've seen, I've come up with the following:

take the last six bytes of the ID, and
long hash = 0;
for(i=10..15) {
  hash <<= 2;
  hash |= id_byte[i];
}

(which creates only 20 bits, but that's ok...)

TIA
Peter
GeneralHelp with probably basic ASSERT Pin
Jason Hooper19-Mar-02 22:59
Jason Hooper19-Mar-02 22:59 
GeneralRe: Help with probably basic ASSERT Pin
Joaquín M López Muñoz19-Mar-02 23:11
Joaquín M López Muñoz19-Mar-02 23:11 
GeneralRe: Help with probably basic ASSERT Pin
Jason Hooper19-Mar-02 23:32
Jason Hooper19-Mar-02 23:32 
GeneralRemove Menu Pin
vin19-Mar-02 22:21
vin19-Mar-02 22:21 
Questionjudge two RGB values are same color, one is just darker ?? Pin
19-Mar-02 20:31
suss19-Mar-02 20:31 
AnswerRe: judge two RGB values are same color, one is just darker ?? Pin
Joaquín M López Muñoz19-Mar-02 21:17
Joaquín M López Muñoz19-Mar-02 21:17 
AnswerRe: judge two RGB values are same color, one is just darker ?? Pin
David Wengier19-Mar-02 21:36
David Wengier19-Mar-02 21:36 
GeneralRe: judge two RGB values are same color, one is just darker ?? Pin
Joaquín M López Muñoz19-Mar-02 21:46
Joaquín M López Muñoz19-Mar-02 21:46 
GeneralRe: judge two RGB values are same color, one is just darker ?? Pin
David Wengier19-Mar-02 21:55
David Wengier19-Mar-02 21:55 
AnswerRe: judge two RGB values are same color, one is just darker ?? Pin
Jon Hulatt20-Mar-02 5:12
Jon Hulatt20-Mar-02 5:12 
QuestionSaving Variable as a file? Pin
MarkPQ19-Mar-02 19:27
MarkPQ19-Mar-02 19:27 
AnswerRe: Saving Variable as a file? Pin
Derek Waters19-Mar-02 19:58
Derek Waters19-Mar-02 19:58 
GeneralExcel Automation Pin
phat19-Mar-02 19:25
phat19-Mar-02 19:25 
GeneralRe: Excel Automation Pin
Bill Wilson20-Mar-02 7:31
Bill Wilson20-Mar-02 7:31 
GeneralRe: Excel Automation Pin
phat20-Mar-02 14:31
phat20-Mar-02 14:31 
GeneralRe: Excel Automation Pin
Bill Wilson21-Mar-02 5:26
Bill Wilson21-Mar-02 5:26 
GeneralRe: Excel Automation Pin
Carlos Antollini21-Mar-02 5:43
Carlos Antollini21-Mar-02 5:43 

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.