473,473 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Setup multi project in one solution in VS2005

5 New Member
Expand|Select|Wrap|Line Numbers
  1. Solution
  2. |
  3. +-- Project 1
  4. |
  5. +-- Project 2 (downloaded from somewhere)
  6. |
  7. +-- Project 3 (my project)
  8.  
  9. Project 1 generate exe
  10. Project 2 and 3 generate dll
  11.  
reason of this setup is that I want to make my Project 3 will be able to used in other program. Right now i can create a program but I can't link my Project 1 with Project 2 and Project 3


error C2065: 'Model_3DS' : undeclared identifier <--- this is the error i am getting

if i add the header files with #include it report other random error. can anyone give me an idea of how to setup my solution properly?
Aug 21 '07 #1
2 1574
jk2l
5 New Member
http://support.microsoft.com/kb/310674/

er... actually using Project Refernece should have solved the problem, what's causing problem is that i also need to set the project to Multithreaded, not Multithreaded DLL under "Properties -> Configuration Properties -> C&C++ -> Code Generation -> Runtime Library".

i really hate the compiler output that can't explain what the hell is going on and wasted so many of my times :S
Aug 21 '07 #2
weaknessforcats
9,208 Recognized Expert Moderator Expert
OK. So you create your Project 3.

Any header files are included by the preprocessor #include and do not need to be part of project 3. You may need to go to Project->Properties->Congiguration Properties->C/C++->Preprocessor->Addtional Include Directories and add paths to youe headers. You should use the #include <header> format.

Any .cpp files from other projects must be added to project 3 as existing itemsby right-clicking on the project name->Add->Add Existing.

Any libraries (.lib or dll) must be added to project 3 as an addtional linker dependency. Project 3->Properties->Configuration Properties->C/C++->Linker->Input->Addtional Dependencies.

You will need to add a path to the library. Tools->Options->Projects and Solutions->VC++ Directories->Libraries(right pane drop doen menu).

If you are using LoadLibrary() for dynamiuc linking, then you do not need to do anything about adding the library or the path to it in the project properties. LoadLibrary() accepts the path and returns and HMODULE you can use for the duration to refer to the library.
Aug 21 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: johnb41 | last post by:
I'm testing out the Visual Basic 2005 Express Edition, and I like it thus far... but i'm puzzled. I want to add a "Setup Project" to my solution. When i go to Add Project, I don't see the...
2
by: sudhaoncyberworld | last post by:
Hi all I am using VS2005, How can I deploy the .Net Framework from my setup project? In the bootstrapper setup program we have below 3 options 1.Download prerequisites from the...
2
by: =?Utf-8?B?VHJhY2tz?= | last post by:
When I run my setup of a vb.net app made in VS2005 and setup made with the setup wizard and then modified in the ide, The .net 2 setup runs and installs and then asks to reboot. If you answer ok...
5
by: =?Utf-8?B?QmVu?= | last post by:
Hi all, Can you share with a few examples in which to create multi-project solutions. I am not sure why that would be necessary. Why would I opt to use this feature in VS2005? I know ...
0
by: 33sparsh | last post by:
hi i am using VSTO2005 to add outlook addins through VS2005. when i take a new project as office add-in07(outlookAdd-ins), by default 2 projects are added to solution.One is "Addin project" and...
4
by: Joe | last post by:
Hi, I am using VS2005 and am attempting to create a Setup project to install my VB.NET application onto the customer's target computer. I am having difficulty setting the Target property for...
1
by: kaushalgajjar | last post by:
I have been struggling to build a package in VS2005. I have an application made in VB.Net with SQL 2000 now i want to build it to use in a stand alone Computer so i have found MSDE from Microsoft...
1
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
I am reviewing Windows service programming. I'm running VS2005 and programming in VB. I've just found an example in Support: 'How to create a Setup project for a Windows Service in Visual Basic...
1
by: capella07 | last post by:
In VS2005 I have a working setup project that installs several CABs with the main app. I also need to have a setup project that only installs the app itself. I created a new setup project and added...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.