I have a very simple DLL written in unmanaged C++ that I access from my application. I recently switch to Visual Studio 2010, and the DLL went from 55k down to 35k with no c
The solution is probably to provide EncodePointer (and DecodePointer, obviously) in a seperate lib, and link that preferentially to KERNEL32.LIB. This is a perfectly supported scenario. In the past, libs like "LIBCTINY" and "UNICOWS" have used this preferential link mechanism to add/replace selected but not all functions from another lib.