Re: How to debug an ActiveX DLL



"Roy Lewallen" <w7el@xxxxxxxxx> skrev i melding
news:124rpqga1ptn1a@xxxxxxxxxxxxxxxxxxxxx
Jon Ripley wrote:
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.

Open the ActiveX project in one instance of vb, and the application
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.


.



Relevant Pages

  • Re: Java Applet Funktionalität in ASP.Net
    ... Ja indem du per Tag eine dotnet dll einbindest, ... Programmierung, also Applets, ActiveX, einschließlich javascript. ... ..NET Framework basierende Komponente" ist also keineswegs unsicherer. ... Packe dein Windows Formular in eine Windows Control Library, ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • Re: why some dlls are scriptable and some are not?
    ... which is the same as ActiveX. ... So a COM DLL is also an ActiveX DLL. ... through its "OLE" functions to read type libraries. ... An object browser shows the methods and properties ...
    (microsoft.public.scripting.vbscript)
  • Re: Java Applet Funktionalität in ASP.Net
    ... >> Applets in normalen HTML Seiten hinzubekommen? ... > Packe dein Windows Formular in eine Windows Control Library, ... > du eine DLL. ... Bei ActiveX wird ja auch local beim Client was installiert, ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • Re: Using a C++ Win32 DLL internally in an ActiveX deployed on a webpage
    ... A quick and dirty solution would be to dump the dll into the ... Active-X control is being installed. ... Can an MFC ActiveX control use a C++ DLL internally to process ... control on the client machine, ...
    (microsoft.public.vc.mfc)
  • Re: Early Binding Fails
    ... You probably have problems with your ActiveX registry entries. ... DCOMCNFG Reports Multiple Copies of DCOM Server ... When you compile your ActiveX project, ...
    (microsoft.public.vb.com)