DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: how to use project files inside another project

  1. #1
    Join Date
    Sep 2006
    Posts
    13

    how to use project files inside another project

    hi huys,

    may i ask, how to use project files inside another project

    thing is my application is part of a large project and now it is time to plug it into that project

    now i have two projects 1- my application 2- the big project

    all i need to do is to let the big project use my code some how so i could be able to make a button in the big project that finally create my application dialog and DoModal() it

    so am i gonna put all my source, hearder and resource files in the big project, or there is another simple way

    thnx 4 ur time and concern

  2. #2
    Join Date
    Jan 2005
    Location
    UK
    Posts
    604
    Hi,
    There are certainly many different alternatives, depending on what type of project
    your piece of code is.
    If your part is an *.exe simply including it in the bigger project will probably not
    work, because you will duplicate the "main" symbol. You can certainly try to include
    your *.cpp/*.h files in the bigger project (with exception of the one where your main function is). This will work if you have chosen your class-names/method-names etc
    sufficiently different from the ones in the bigger project.Resource files usually cause a bit of a pain when moving them to another existing project, because the Wizards generate resource ID with the same numbers in different projects. So when you merge the projects IDs are duplicated.
    Alternatively you could re-create your project as a library or DLL and then include the DLL in the main project.

    Hope that helps?

    D
    DKyb
    -------------------------------
    Life is a short warm moment -
    Death is the long cold rest.
    Pink Floyd
    -------------------------------

Similar Threads

  1. XML files vs Database
    By Mansoor in forum Enterprise
    Replies: 2
    Last Post: 09-10-2002, 10:38 PM
  2. Basic question about project files
    By Erik Cruz in forum .NET
    Replies: 0
    Last Post: 03-12-2002, 09:22 PM
  3. Replies: 1
    Last Post: 12-12-2000, 01:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center