Project dependencies

Hi to explain briefly,

I have a solution which consist of 3 project files.

Third project file is dependent on other two project file.

So in Solution explorer, I right clicked on the third project file and selected other two projects in "Project ependencies"

But is there any way where I can tell this dependency in project file itself.

[383 byte] By [pavan_734] at [2008-1-8]
# 1

Yes, you can go to the project settings for your main project, and on the linker tab, you can specify additional inputs. If the other two projects are DLLs you can specify the import .LIB for each DLL as an input to the linker. Just make sure that the .LIB files are in a location where they'll be found (if not you'll get an error during the link phase).

rtpninja at 2007-10-2 > top of Msdn Tech,Visual C++,Visual C++ General...
# 2
HI there,
Yes, you can surely do tht.Just go to project properties>configuration properties>additional include files.Here you can add the path of the other two files.Even if they are not Dlls you can add them here.This will cause the current project(the one which is highlighted in the solution explorer) to have access to these two other projects as well.But remember to simply add them as a path i.e. just give the path of the location where they are present and not the file position.For eg. if your files are present in ......\......\debug under the name txt1.h,just type till ...\...\debug and not ...\...\debug\txt1.h.
This will avoid any future errors.
Hope this solves your problem.
Happy coding!
reenavade at 2007-10-2 > top of Msdn Tech,Visual C++,Visual C++ General...