Just want to test my dll project

Posted on 2001-06-18
Last Modified: 2010-05-02
Im having trouble with testing my dll project.  I have previously compiled my dll but now I am adding some functionality to it.  I am having trouble testing becuase it is using only the compiled version.  I want to be able to step through my code in the dll project..

This must be easy...
Question by:kiprimshot
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
LVL 70

Expert Comment

by:Éric Moreau
ID: 6203346
From the File menu, select "Add project" and select "Standard EXE". Now right-click the new project and select "Set as startup". You will be able to debug your DLL.

Author Comment

ID: 6203359
I have done this already...the project only uses the compiled version of the dll..  I do not want to recompile a new dll every test..

Am I doing something wrong.  It seems as though this worked before.

Accepted Solution

gbaren earned 40 total points
ID: 6203374

1. Project Menu/Project Properties/Component Tab
set Version Compatibility to "Binary Compatibility" and select the previously compiled DLL.

2. File/Add Project/Standard EXE

3. Right-click new project and make it "Start Up"

4. In the new project Project/References add your DLL

5. Write code in the EXE project to test your DLL. You can set breakpoints and watches, etc. in the DLL project.

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!


Expert Comment

ID: 6203378
If you want to debug your DLL, you  have to set a reference to that DLL thru Project/References and do the same as emoreau has mentioned. You will be debugging the DLL that is part of the project group you are testing from

Expert Comment

ID: 6203392
You're almost set up correctly...
In the projects/references menu, un check the dll and click OK.
Then select projects/references again and hit the browse button.  Find the vbp file for your dll project and select the VBP instead of the DLL

Expert Comment

ID: 6203667
Did you deregister your dll from the registry? If not try and check again.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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 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…

707 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