It is a generic term for a piece of adapter code that fundamentally changes the execution environment. I saw it first being used during the 16-bit to 32-bit Windows transition, a thunk was used to allow code that was running in 16-bit mode to call 32-bit code.
Up vote 1 down vote favorite share g+ share fb share tw.
I know a thunk has something to do with the vtbl and execution of code to find the right function pointer. Am I right? C++ thunk link|improve this question asked Jul 25 '10 at 14:22Tony The Lion12.7k32375 76% accept rate.
"), your question should be closed as a dupe, I think. – Pavel Shved Jul 25 '10 at 14:41.
It is a generic term for a piece of adapter code that fundamentally changes the execution environment. I saw it first being used during the 16-bit to 32-bit Windows transition, a thunk was used to allow code that was running in 16-bit mode to call 32-bit code. Something similar for ATL thunks.
It knows how to turn a Windows callback, a pure C execution environment with nothing but a window handle to distinguish the context, into a virtual method call on a class object. The thunk takes care of mapping the window handle to the ATL class instance that wraps it, and translate the message number to the corresponding virtual method.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.