🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2542

Re: Good hash function on window handle?

#2542
From: CADSI
Date: Thu, 09 May 1991 06:17
22 lines
1497 bytes
From article <488@data.UUCP>, by kend@data.UUCP (Ken Dickey):
> al@well.sf.ca.us (Alfred Fontes) writes:
> 
>>Has anybody come up with an exceptionally good hash function for a table
>>keyed on the handle returned by CreateWindow()?
> 
> I suggest that instead of putting the handle in a table, you put the
> table in the handle.
>

I have a class this does this if you want it.
If you wanna store HANDLES in the table (which is itself a HANDLE) this
table will handle that too.  All you have to supply the map and compare
functions as a sort of sub-class.
No real big deal, Just lock the handle the HashTable class
gives you for mapping and lock both during the compare.

|----------------------------------------------------------------------------|
|Tom Hite					|  The views expressed by me |
|Manager, Product development			|  are mine, not necessarily |
|CADSI (Computer Aided Design Software Inc.	|  the views of CADSI.       |
|----------------------------------------------------------------------------|
Technical Details
Message-ID: <1991May9.061744.6829@ccad.uiowa.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!cs.utexas.edu!uunet!ns-mx!ccad.uiowa.edu!cadsi
References: <488@data.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!cs.utexas.edu!uunet!ns-mx!ccad.uiowa.edu!cadsi
From: cadsi@ccad.uiowa.edu (CADSI)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Good hash function on window handle?
Message-ID: <1991May9.061744.6829@ccad.uiowa.edu>
Date: 9 May 91 06:17:44 GMT
References: <488@data.UUCP>
Distribution: comp
Organization: CAD-Research, U. of Iowa, Iowa City, Iowa
Lines: 22