Click here to Skip to main content
13,046,087 members (46,119 online)
Click here to Skip to main content

Stats

20.7K views
19 bookmarked
Posted 13 Apr 2008

Generic Thunk with 5 combinations of Calling Conventions

, 13 Apr 2008
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
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170713.1 | Last Updated 13 Apr 2008
Article Copyright 2008 by OwnWaterloo
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid