Results 1 to 4 of 4

Thread: Call methods from another internal project

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2008
    Location
    UK
    Posts
    40

    Call methods from another internal project

    I have two projects in one solution called proj1 and proj2.

    proj2 is just a backend sort of thing, which is used to handle hidden stuff etc.
    proj1 displays it all to the console, takes userinput etc...

    now, say in proj1 i need to use one of the methods from proj2, how would i go about doing this?
    I've tried creating a new instance (doesn't work...), and adding a service reference (no go...). Project dependencies won't work beacause right now, proj2 relies heavily on variables etc. from proj1.

    any help would be appreciated. thank you.

  2. #2

    Thread Starter
    Member
    Join Date
    Jan 2008
    Location
    UK
    Posts
    40

    Re: Call methods from another internal project

    No one knows...?

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Call methods from another internal project

    what you have is a circular reference problem. What you might want to do is split this functionality out to a third project from which both projects can reference, and call the functions that way.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    Member
    Join Date
    Jan 2008
    Location
    UK
    Posts
    40

    Re: Call methods from another internal project

    Quote Originally Posted by techgnome View Post
    what you have is a circular reference problem. What you might want to do is split this functionality out to a third project from which both projects can reference, and call the functions that way.

    -tg
    Worked like a charm, thanks very much.

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