How to access to a different project in VS2003?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ycinar
    New Member
    • Oct 2007
    • 39

    How to access to a different project in VS2003?

    I have several projects for a single application. I want to access from project A to some class in project B. How do I do that? How do I let the code know the paths etc?
  • AHMEDYO
    New Member
    • Nov 2007
    • 112

    #2
    HI..

    if i understand your question you have more than 1 method, if you have muliple projects use same classes you can

    1.create separated "Dynamic Link Library" DLL File and your classes will be COM Classes and you can use it anywhere.

    2.just include same sources .cpp files and headers .h files with all projects that use these classes.

    Best Regards

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      Use AHMEDYO choice #2.

      Any time you add a source file to a Visual Studio project, the file is not copied or duplicated. Therefore, bith projects will use the same source file.

      This is a poor man's library but it will work for small projects and classroom assignments. For industrial code, follow AHMEDYO choice #1.

      Comment

      Working...