Re: How to debug an ActiveX DLL
- From: "Dag Sunde" <me@xxxxxxxxxxxx>
- Date: 25 Apr 2006 11:16:39 +0200
"Roy Lewallen" <w7el@xxxxxxxxx> skrev i melding
news:124rpqga1ptn1a@xxxxxxxxxxxxxxxxxxxxx
Jon Ripley wrote:Open the ActiveX project in one instance of vb, and the application
Hi,
I have been searching for a few months for concrete advice on how to
debug an ActiveX DLL written in VB6. None of the advice I have seen and
followed so far has achieved anything and I'm hoping that someone here
will be able to point me to a resource or give me some instructions on
how to do what I need.
I have written a DLL called xyz.dll which is a plug in for a closed
source application called abc.exe. The plug in works fine except for a
few known cases where there is a runtime error 5, I know what routine the
error occurs in but can glean no further information - such as which
statement is generating the error and what the state of the variables are
at the time of the error.
The only solution I can currently see, as no other solutions seem to
exist, is to rewrite from observation enough of abc.exe in VB as a form
in an exe version of my project so that I can interactively debug the
code. I'd rather not have to do this as I would have to spend several
weeks reengineering a lot of code from abc.exe.
There has to be a simpler way, but what is it?
I'm a real novice when it comes to ActiveX DLLs, but you might be able to
do what I do. The DLLs I've made consist entirely of classes. I simply
temporarily add the classes to the main exe (in your case abc.exe) and run
the exe in the environment.
in another instance of vb.
In the app, make sure the References points to the activeX's .vbp file,
and not the registered dll.
Now, set the breakpoints you need in the activeX source, and hit F5.
Switch to the vb-instance containing the application project and run it.
You can now singlestep and have breakpoints in both, and jump from the app
and into methods running in the other vb (activeX project)
--
Dag.
.
- Follow-Ups:
- Re: How to debug an ActiveX DLL
- From: Tony Proctor
- Re: How to debug an ActiveX DLL
- References:
- How to debug an ActiveX DLL
- From: Jon Ripley
- Re: How to debug an ActiveX DLL
- From: Roy Lewallen
- How to debug an ActiveX DLL
- Prev by Date: Re: How to debug an ActiveX DLL
- Next by Date: Re: VB6 clock function coding
- Previous by thread: Re: How to debug an ActiveX DLL
- Next by thread: Re: How to debug an ActiveX DLL
- Index(es):
Relevant Pages
|