473,320 Members | 1,600 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,320 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 1584
>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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.