Developing C++/CLI project for Windows 8 Tablet on Windows 7

≡放荡痞女 提交于 2019-12-08 10:15:47

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!