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”的复选项去掉。

posted @ 2011-05-06 17:26  Fan Zhang  阅读(283)  评论(0编辑  收藏  举报