CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2001
    Posts
    254

    Additional Project

    Greetings,

    I have added a new project within an existing project, it looks like, the modules,components,references and dataevenironment from the first project are not being shared. (cannot be used by the added project) can this be shared ?, is there any thing i mist.

    thns
    cyrus

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Additional Project

    Not really, as any program could also access your data the same way.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Apr 2009
    Posts
    394

    Re: Additional Project

    Cyrus, just read D's comment prior to the comma... or let me state that for you... If each project is a standard exe then the answer is no. If however, one of them is an activex project then this functionality for debugging is available to you. See debugging activex via your friends (yahoo, google, ask, answers, bing) or at MS or help files...


    D, Huh? Perhaps, me thinks, read that again you should I mean really...



    Good Luck

  4. #4
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: Additional Project

    Cyrus, if you have two projects in the IDE, you sure have a project group.
    Still each project is individual and produces an own exe file.
    If you want the other project to share a module or form or class of the first project, you have to simply add the file to the other project, too. Use Project->Add File... to add all files form the other project, too.
    I think VB recognizes the multiple loading of a file and lets you make changes only to one of the instances, after that.

  5. #5
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Additional Project

    I am pretty sure that WOF is correct, if you add the same file [e.g. same path and filename] to both projects then when the file is changed it effects both projects.

    I actually use a folder under my main projects folder called common which has routines that are used by almost all of my projects. I find this works rather well with proper planning.

  6. #6
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Additional Project

    Not to share DATA, though. One app wouldn't know what the other app was doing
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured