Announcement

Collapse
No announcement yet.

Controlling a DLL/EXE from another program

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Controlling a DLL/EXE from another program

    Anyone have a good way to control an standalone EXE or a DLL from another
    program? This program, which performs low-level port I/O, would be launched
    from the parent app and keep running, responding to a few simple commands
    from the parent, such as "Start", "Stop", "Set Parameter X to 1" and of
    course "Terminate".

    I've considered defining some custom Windows messages, using a shared memory
    location, or even a simple disk file.

    Any ideas?

    Thanks!


    ------------------
    Mark Newman
    Mark Newman

  • #2
    Using custom messages is a traditional and effective approach. It has the advantage over using shared memory or disk files in that there are no issues about access conflicts (it's friendly to multi-tasking and multi-threading).

    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Comment


    • #3
      a post that may interest you concerning
      memory sharing between two apps.





      ------------------

      Comment


      • #4
        Thanks all!


        ------------------
        Mark Newman
        Mark Newman

        Comment

        Working...
        X