Jump to content


- - - - -

How to use class files of one project in another


  • Please log in to reply
No replies to this topic

#1 AWS

AWS

    Administrator

  • Administrators
  • 44511 posts
  • LocationJoliet, IL U.S.A.

Posted 04 February 2012 - 10:33 PM

Hi suppose i have a project called A and it has 2 sub projects called B and C in VS 2010

The content of a header file called C_header.h in project C looks like

namespace p

{    class someclass {...}; }

Now how can i use the class someclass  in the project B i.e how can i access C_header.h file in the project C (will i have to go to properties and add additional source files or is there something else or should i add project B as a reference in project C any advice??


A candle loses nothing by lighting another candle.

View the full article




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users