Issue using Visual Studio 2010 compiled C++ DLL in Windows 2000

前端 未结 2 577
花落未央
花落未央 2020-12-06 01:11

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

2条回答
  •  时光取名叫无心
    2020-12-06 01:24

    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.

提交回复
热议问题