Click here to Skip to main content
12,454,104 members (56,224 online)
Click here to Skip to main content

Stats

18.5K views
303 downloads
19 bookmarked
Posted

Generic Thunk with 5 combinations of Calling Conventions

, 13 Apr 2008 CPOL
A simple and generic solution of making a member function become a callback function with the help of thunk technology.
GenericThunk_source
include
Thunk
src
Thunk
GenericThunk_source_sample
include
Thunk
sample
Thunk
CdeclToCdecl
CdeclToCdecl.vcproj.OWNCOMPUTER.OwnWaterloo.user
CdeclToStd
CdeclToStd.vcproj.OWNCOMPUTER.OwnWaterloo.user
StdToCdecl
StdToCdecl.vcproj.OWNCOMPUTER.OwnWaterloo.user
StdToStd
StdToStd.vcproj.OWNCOMPUTER.OwnWaterloo.user
TestSrc
ThisToCdecl
ThisToCdecl.vcproj.OWNCOMPUTER.OwnWaterloo.user
ThisToStd
ThisToStd.vcproj.OWNCOMPUTER.OwnWaterloo.user
src
Thunk
CdeclToCdecl.vcproj.OWNCOMPUTER.OwnWaterloo.user
CdeclToStd.vcproj.OWNCOMPUTER.OwnWaterloo.user
release
CdeclToCdecl.exe
StdToCdecl.exe
StdToStd.exe
ThisToCdecl.exe
ThisToStd.exe
StdToCdecl.vcproj.OWNCOMPUTER.OwnWaterloo.user
StdToStd.vcproj.OWNCOMPUTER.OwnWaterloo.user
ThisToCdecl.vcproj.OWNCOMPUTER.OwnWaterloo.user
ThisToStd.vcproj.OWNCOMPUTER.OwnWaterloo.user

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

OwnWaterloo
Software Developer (Junior)
China China
No Biography provided

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160826.1 | Last Updated 13 Apr 2008
Article Copyright 2008 by OwnWaterloo
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid