Solved

How to reset the executable for DLL testing

Posted on 2001-07-12
5
188 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Passing a Text Box name to a Sub 6 104
Publisher:   Unknown     VB.exe Application 1 31
Set WorkSheet  not Working 9 62
Modify Text File with Excel Macro 13 46
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

737 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