Results 1 to 7 of 7

Thread: application caller

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    application caller

    in .NET, is there a way to find out who called my application, then directly communicating with them? example, some 3rd party application calls my application I have developed, I want to find out which app it was then send back any messages back to it - whatever it may be.

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

  2. #2
    Hyperactive Member drattansingh's Avatar
    Join Date
    Sep 2005
    Posts
    395

    Re: application caller

    Seems to me that you might have to use TCP/IP or UDP/IP communication to do something like that - Jennifer

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Re: application caller

    no, very wrong and very incorrect.
    we are talking about 2 applications within the same computer on the same user account.

    app 1 -> app 2

    app 2 needs to know WHO called it and to get its handle if at all possible

    example:

    Jennifer -> Techno

    Techno needs to know who called it, which in this case is Jennifer. Want to then establish communication/talks with that caller

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

  4. #4
    Hyperactive Member drattansingh's Avatar
    Join Date
    Sep 2005
    Posts
    395

    Re: application caller

    I still don't see why you can't use tcp/ip. I had something to do almost identical to that before and I used tcp/ip even if the two applications are on the same account and computer. You will just have to use 2 different port numbers, the IP address will be localhost.

    And the communication you're talking about, is there another way other than tcp/ip? If there is please let me know, since right now the only way I know is via tcp/ip.

    When the client connects to the server with tcp/ip, the server could read the client handle information. To make it better, the client could send the message in xml format and include a tag in that message to indicate it's a correct client. Then the server will know who it is and call the correct methods and / or objects.

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Re: application caller

    TCP/IP is different to what I am trying to achieve. This is not involving network communication in any way

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: application caller

    If this was possible I would think that it would be done through the Process class, or perhaps some other class in the Diagnostics namespace that corresponded to a process tree. The Process class has no members that will do this and I can't see any other class in the Diagnostics namespace that look like they would either. I have no problem accepting the fact that this is not possible. Windows keeps track of which processes started which other processes because you can end a process tree from the Task Manager, but it seems very likely that if a process was expecting communication from a child process that it would explicitly create a link between the two. You have to do this with two forms within an application and they're more closely linked than two separate processes are.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Re: application caller

    i agree with you, just thought I would ask as my knowledge can sometimes be limited!

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

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