Re: How to debug DllRegisterServer() in COM?
Sanity check - did you build in Debug configuration?
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
<bobbyhsl@gmail.com> wrote in message
news:1165840321.987117.307660@79g2000cws.googlegroups.com...
Thanks Martin. I have done your befor I posted here. But I can not step
into the breakpoints,that's why ask this question. When I press F5 in
VS2005,it always show"...dll registerserver suceess". I don't know why
these breakpoints don't make sense.
"Aston Martin ??????
"
in studio go to project properties -> Configuration properties ->
Debugging -> Command
set this fields value to regsvr32.exe and give $(TargetPath) as its
argument. break into you DllRegisterServer()
or else put some blocking call in DllRegisterServer() (e.g. u can use
CRT's getch()) and issue this on command line
regsvr32 <your_component_name>
this will call DllRegisterServer() and it will wait on getch() this
will give u time to atach a debugger.
happy debugging....
On Dec 10, 6:47 pm, "bobby...@gmail.com" <bobby...@gmail.com> wrote:
Hello All,
I am a little new in COM.I have gotten a problem about COM dll
register. I want to set breakpoints in DllRegisterServer fuction and
debug it, but I can not do it even I set the debug entry to regsvr32
and necessary command arguments in VS2005. I mean I can not enter the
funtion with these breakpoints.
Does anybody has this experience?
Thanks in advance.
Bobby