Solved

Just want to test my dll project

Posted on 2001-06-18
6
132 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 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.
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
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.

 
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

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

856 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