DllRegisterServer错误0xc0000005,(C ++ COM Dll)。如何在Visual Studio 2008中调试我的DllRegisterServer函数? [英] DllRegisterServer error 0xc0000005, (C++ COM Dll). how do I debug my DllRegisterServer function in Visual Studio 2008?
本文介绍了DllRegisterServer错误0xc0000005,(C ++ COM Dll)。如何在Visual Studio 2008中调试我的DllRegisterServer函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我写了一个COM dll,并希望使用
I have written a COM dll, and wish to register it using
regsvr32 myComdll.dll
我收到错误:
DllRegisterServer failed, Return code was: 0xc0000005
我想调试我的DllRegsiterServer函数,不知道如何设置Visual Studio 2008在调试模式下运行regsvr32 ...
I want to debug my DllRegsiterServer function, but I do not know how to set up Visual Studio 2008 to run regsvr32 in debug mode...
感谢
推荐答案
项目+属性,调试,set Command = Regsvr32.exe $(TargetPath)。在DllRegisterServer函数中设置断点或使用Debug + Exceptions,检查Win32异常。按F5键即可。
Project + Properties, Debugging, set Command = Regsvr32.exe $(TargetPath). Set a breakpoint on your DllRegisterServer function or use Debug + Exceptions, check Win32 Exceptions. Press F5 to get it going.
这篇关于DllRegisterServer错误0xc0000005,(C ++ COM Dll)。如何在Visual Studio 2008中调试我的DllRegisterServer函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文