Solved

Just want to test my dll project

Posted on 2001-06-18
6
129 Views
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...
0
Comment
Question by:kiprimshot
6 Comments
 
LVL 69

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.
0
 
LVL 2

Author Comment

by:kiprimshot
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.
0
 
LVL 5

Accepted Solution

by:
gbaren earned 40 total points
ID: 6203374
kiprimshot,

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.


0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 2

Expert Comment

by:smkkaleem
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
0
 
LVL 5

Expert Comment

by:bob_online
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
0
 
LVL 1

Expert Comment

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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
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…

706 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

18 Experts available now in Live!

Get 1:1 Help Now