473,395 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Setting up a project dependancy

I made up a solution. I want to write a .dll and another project to test the
..dll
So far I have created the .dll project and the test .exe project in the same
solution.
I set the .dll project as a dependancy for the .exe project.

How do I provide settings for the .exe as to where the header and .dll are
and to link with them?

Thanx,
Chris
Nov 17 '05 #1
1 1591
>I set the .dll project as a dependancy for the .exe project.

Chris,

Won't that be the other way round - the EXE depends on the DLL?
How do I provide settings for the .exe as to where the header and .dll are
and to link with them?


It's down to how you want to structure your directories.

If you've got a structure like this:

Root
EXE project
DLL project

Source files in your EXE project can include the DLL header by using:

#include "..\DLL project\theheader.h"

An alternative way of working if you're using Visual Source Safe is to
have the DLL headers shared by both projects so that the EXE has a
copy of the header file in its own folder.

VS2003 handles the LIB for you if you've created a dependency, so the
only other issue is how does your EXE find the DLL - usually for
testing purposes, I copy the DLL to the EXE's folder.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Trev | last post by:
Is it possible to rebuild dependancy information for objects in a database? I can hardly ever DTS a database across to another server because something will fail with the message "invalid object...
1
by: Christopher | last post by:
I made up a solution. I want to write a .dll and another project to test the ..dll So far I have created the .dll project and the test .exe project in the same solution. I set the .dll project as...
4
by: Tom | last post by:
I have a large soultion 20+ projects C++ MC++ and C#. When I hit F5 no matter what. It checks to see if it needs to build every project. "projectX" is up to date. It takes like 10 seconds. I know...
1
by: JJ | last post by:
Hi, I have gone the setup project route and added the setup project to my solution as in the guide. I have checked the dependancy's and they all seem to be there. Now do I just build the project...
3
by: John Dann | last post by:
I'm getting forgetful - can someone please remind me where I can edit the 'Manufacturer' setting in VB.Net 2003 Pro, ie the string that's used for the default outer folder name during the standard...
2
by: JT Lovell | last post by:
I have a solution with 5 projects and I need them to build in a particular order. I understand that setting the project dependencies will allow this, but when I go to the Project Dependencies...
1
by: Learnicus | last post by:
Hello, I have a Winforms app that accessess a webservice application that i have written. Both of these use a common class called replication to carry changes from an online database <> offline...
1
by: Dave | last post by:
Is it possible to build an MS sql 2005 caching dependancy stucture similar to what is offered by the SqlCacheDependency class for use with non asp.net applications using MS sql 2005 notification...
1
by: bob_jeffcoat | last post by:
Hello, In my C# solution the MathsUtility Project uses a few fortran DLLs. What is the correct way to specify the dependancy of these DLLs? Initially I just stuck the DLLs in a directory on...
2
by: Ronald S. Cook | last post by:
In my solution, I have a client (Windows app) and a class library. The class library project has a connection string setting that I would like to be able to change (from the client project...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.