Tech Support > Microsoft Windows > Development Resources > DLL lookup tables
DLL lookup tables
Posted by ssylee on May 8th, 2008


I'm new to Windows programming, but have been exposed to enough C++/C
to get started on the topic. I have been going through some Windows C+
+ programming code. In a lot of source files, I have found quite a few
lines of entries of lookup tables. However, I'm not familiar of how
they are used in runtime. Any explanation would help a lot. Thanks.

Posted by mark on May 8th, 2008


ssylee wrote:
a lookup table is just an array and is not win32 specific.

Posted by Scott McPhillips [MVP] on May 9th, 2008


"mark" <mark@hilton.com> wrote in message news:g00248$bos$1@aioe.org...

At a guess, these tables might be the message maps used with MFC and ATL
libraries. Windows sends numerous messages to programs that create windows.
That's how you get your input about mouse, keys, etc. Message maps are used
to associate each message with a particular function. So when a message
comes in your function designed to handle it gets called, via the lookup
table.

--
Scott McPhillips [VC++ MVP]



Similar Posts