Solved

How to reset the executable for DLL testing

Posted on 2001-07-12
5
182 Views
Last Modified: 2006-11-17
I'm working on my first ActiveX DLL in Visual Basic.  Not knowing any better, I kept compiling it, open a test VB project that called the DLL, and ran my tests on the DLL that way.  I was peppering the DLL code with msgbox and log print statements to debug portions of it because I couldn't fathom how to test it otherwise.

  I then noticed the RUN arrow sitting up there while editting the DLL code.  I clicked it and it prompted me to ask which executable I wanted to use the test the DLL.  I thought this was GREAT!

  But after filling in all the prompts and running it, it bombed because I forgot to add some run-line parameters with the executable name....

QUESTION: How do I bring up that dialog box to change the executable to test the DLL?    I swear I clicked on everything I could find.

Thanks
0
Comment
Question by:EasyAim
5 Comments
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 50 total points
ID: 6277998
build a project group that includes the DLL project AND a standard project that will test the DLL.  in the Project Eplorer, right click on the Standard Project and select Set As StartUP.

Make sure that in the Standard project member of the group, you have included the Reference to the DLL project.  Now you should be able to run the Standard projecvt, and step, as necessary, into the code of the DLL  project.  

That is one of the greeat strnegth of VB, and the main use of Project Groups.
0
 
LVL 8

Expert Comment

by:Dave_Greene
ID: 6278001
An even easier way to test you DLL is to open it in one instance of VB. Once opened press the play button.  Nothing will happen in the DLL project (This is good!) then in another instance of VB open whichever EXE you want to call the DLL with.  Now when you run the exe and create the DLL object, the other instance of VB will get focus and you can debug the DLL.  

Although it is much easier to add the DLL project to an EXE project (Creating a Group) and test the DLL that way.  

Good luck

-Dave
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6278041
If i understood, cight click on test project and choose "Set as initial"(i don't know the exact menu item since i have vb in spanish.)
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 6278059
It should be the choice at the top of the Pop-Up Menu that is displayed when you right click on the Project Name of the Standard Project.
0
 

Author Comment

by:EasyAim
ID: 6278754
Arthur Wood's explanation works well.  It is going to save me tons of time now.  I appreciate everyone's response.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now