C++中使用SEH

Alt+F7 => C++ => Code Generation => Enable C++ Exception,选择”Yes with SHE Exceptions”

另外,用VS2005编译驱动的时候,如果使用SEH,可能会把kernel32.dll link到驱动里。这样讲导致驱动不能正常加载。

简单的办法是:

Alt+F7 => Linker => Input => Additional Dependencies ,将”Inherit from parent or project default”的复选项去掉。

转载于:https://www.cnblogs.com/fanzi2009/archive/2011/05/06/2039171.html

猜你喜欢

转载自blog.csdn.net/weixin_34253126/article/details/94192297