问题
I have a code base of native C++. Recently I incorporated a Windows 8 tablet into the system that we deploy to.
I have a .NET managed DLL that accesses the Tablet orientation sensor. This managed code is wrapped by an unmanaged class that I can access from the native C++.
The problem is that I cannot run and debug the code on my Windows 7/VS2010 box without getting an Access Violation at the outset. No breakpoints are even hit before the exception.
Is there a way to ignore the managed DLL while debugging on the Windows 7/VS2010 box?
回答1:
Delay loading is your friend. Read the MSDN documentation, starting with Linker Support for Delay-Loaded DLLs.
来源:https://stackoverflow.com/questions/28460521/developing-c-cli-project-for-windows-8-tablet-on-windows-7