Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stepping through an external class module

Status
Not open for further replies.

waynea

Programmer
Jul 11, 2000
41
US
I have an application which needs to call several instances of a class module which is defined in another project. The calls seem to be working okay, but something in the class module is throwing a "path not found" error, and there are several possible sections where this could occur. Is there a way to set a breakpoint in the code so that I can step through the code from the master program to see the lines being executed in the class module? (I'm new to VB, obviously!) [sig][/sig]
 

If you have the code for both projects, say the front-end EXE and the DLL that has the class modules to debug then you certainly can do this.

Open up the front-end project in the VBE then click on File --> Add Project and select the project that is referenced by the front-end.

From there you can put break points on either project as you wish.

I hope I understood your problem correctly and more importantly I hope the answer helps! [sig][/sig]
 
Cool. I'll reference that in future jobs. Unfortunately, in this one, it threw me an error, because the external class is an activeX EXE module which is referenced by the master. [sig][/sig]
 

It should not make a difference the fact that it is an ActiveX EXE vs. DLL! I've opened three projects in the same VBE many times: Standard EXE, ActiveX DLL and ActiveX EXE. I was able to debug all three projects at once -- you pretty much have to do that when developing n-tier apps.

Make sure that the Standard EXE project makes a reference to the ActiveX EXE's "Project" and the not the actual EXE. So if the ActiveX is called "BackEnd", make sure that the reference is made to BackEnd.VBP and not BackEnd.EXE [sig][/sig]
 
I couldn't get the master to reference the ActiveX EXE's project, either, but I got the problem worked out by changing the ActiveX component to a DLL instead of an EXE. That let me add the project so I could step through the code and locate my problem. Thanks! [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top