DLL lookup tables
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
POPULAR GROUPS

more...

comp.os ... win32 Profile…
 Up
DLL lookup tables         


Author: ssylee
Date: May 8, 2008 11:07

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.
2 Comments
Re: DLL lookup tables         


Author: mark
Date: May 8, 2008 16:40

ssylee wrote:
> 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.

a lookup table is just an array and is not win32 specific.
no comments
Re: DLL lookup tables         


Date: May 8, 2008 17:37

"mark" hilton.com> wrote in message news:g00248$bos$1@aioe.org...
> ssylee wrote:
>> 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.

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]
no comments