Thread View: pl.comp.tlumaczenia
5 messages
5 total messages
Started by Mateusz Łoskot
Wed, 26 Oct 2005 14:25
Thunk i thunking
Author: Mateusz Łoskot
Date: Wed, 26 Oct 2005 14:25
Date: Wed, 26 Oct 2005 14:25
31 lines
2589 bytes
2589 bytes
Witam, Czy ktoś z Was wie jak w (poniżej fragment) przetłumaczyć poprawnie wyrazy thunk i thunking? Jest na grupie wątek pt. "Thunking & roaming" (by Lukasz Jakubowski 9 Gru. 1997) ale nie o takie tłumaczenie mi chodzi (ono nie bardzo pasuje do mojego fragmentu). Tu jest fragment, wymaga on ciut wiedzy na temat C/C++ ale myślę, że jest dość zrozumiały: "The window procedure is called StartWindowProc and is defined as a static function. C++ static functions cannot directly call instance member functions (how could they decide which of the potentially many instances to call?), but this is exactly what we want our window procedure to do. To get around this, the idea of thunking is used." Więc, co się kryje po naszemu za "the idea of thunking"? Na razie typuję, że to coś w rodzaju: konwersja rzutowanie wyodrębnienie przekierowanie Z góry dzięki za pomoc, pozdrawiam -- Mateusz Łoskot http://mateusz.loskot.net
Re: Thunk i thunking
Author: Slawek Kotynski
Date: Thu, 27 Oct 2005 08:21
Date: Thu, 27 Oct 2005 08:21
40 lines
2885 bytes
2885 bytes
Mateusz Łoskot wrote: > Witam, > > Czy ktoś z Was wie jak w (poniżej fragment) przetłumaczyć poprawnie > wyrazy thunk i thunking? > > Jest na grupie wątek pt. "Thunking & roaming" (by Lukasz Jakubowski 9 > Gru. 1997) > ale nie o takie tłumaczenie mi chodzi (ono nie bardzo pasuje do mojego > fragmentu). > > Tu jest fragment, wymaga on ciut wiedzy na temat C/C++ ale myślę, że > jest dość zrozumiały: > > "The window procedure is called StartWindowProc and is defined as a > static function. C++ static functions cannot directly call instance > member functions (how could they decide which of the potentially many > instances to call?), but this is exactly what we want our window > procedure to do. To get around this, the idea of thunking is used." > > Więc, co się kryje po naszemu za "the idea of thunking"? > > Na razie typuję, że to coś w rodzaju: > konwersja > rzutowanie > wyodrębnienie > przekierowanie Zastrzeliłeś (czy następne zdania czegoś więcej nie wyjaśniają?) bo thunking dotąd kojarzył mi się wyłącznie z emulacją trybu 16->32 bity. Np. tutaj: http://windowsserversystem.pl/Articles/6179.aspx "Określenie thunking oznacza przechwycenie wywołania funkcji, wykonanie specjalnego przetwarzania do przetłumaczenia kodu z 16-bitowego na kod 32-bitowy i przekazanie kontroli funkcji docelowej." -- mjk
Re: Thunk i thunking
Author: Mateusz Loskot
Date: Thu, 27 Oct 2005 12:51
Date: Thu, 27 Oct 2005 12:51
19 lines
2454 bytes
2454 bytes
Hm, no strzelac to nie chcialem, ale dokladnie w moim przykladzie thunk/thunking nie ma nic wspólnego z 16/32/64 bitowoscia. To taki knif pozwalajacy na dostep do czegos, do czego w teorii dostepu (w okreslony sposób) nie masz :-) Taki wybieg, czy myk, jak kto woli. Fragment pochodzi z podrecznika "WTL Developer's Guide" by Clipcode Do pobrania z dzialu Files grupy dyskusyjnej dot. WTL (Windows Template Library) http://groups.yahoo.com/group/wtl/files/Clipcode%20WTL%20Guide/ ale trzeba sie zalogowac w yahoo, wiec jak ktos chcialby calosc akapitu/chapter to moge wyslac/wkleic. Rozdzial "StartWindowProc and Thunking" Pozdrawiam -- Mateusz Loskot http://mateusz.loskot.net
Re: Thunk i thunking
Author: Marcin Bulandra
Date: Thu, 03 Nov 2005 22:25
Date: Thu, 03 Nov 2005 22:25
20 lines
2330 bytes
2330 bytes
"Mateusz Łoskot" <mateusz@loskot.net> wrote in message news:1130336737.603462.40030@f14g2000cwb.googlegroups.com... > "The window procedure is called StartWindowProc and is defined as a > static function. C++ static functions cannot directly call instance > member functions (how could they decide which of the potentially many > instances to call?), but this is exactly what we want our window > procedure to do. To get around this, the idea of thunking is used." > > Więc, co się kryje po naszemu za "the idea of thunking"? Gogle na zapytanie thunk "C++" wypłuły stronę, na której thunk tłumaczone jest jako łącznik, i też dotyczy wywołania metody statycznej (wirtualnej). http://www.intercon.pl/~sektor/cbx/advanced/addons.html akapity 3 i 2 od końca -- Pozdrawiam, MBu
Re: Thunk i thunking
Author: Mateusz Loskot
Date: Fri, 04 Nov 2005 13:12
Date: Fri, 04 Nov 2005 13:12
9 lines
1938 bytes
1938 bytes
Witam, No jaka ironia, te ksiazke Sektora van Skijlena odwiedzam regularnie, ale nie skojarzylem aby tam szukac tego terminu. Dzieki -- Mateusz Loskot http://mateusz.loskot.net
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads