Results 1 to 17 of 17

Thread: VB6 - Program Communication

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2012
    Posts
    1,668

    VB6 - Program Communication

    There are numerous examples of SendMessage useage, and this is my version of communication between 2 programs. The basics came from "www.TheScarms.com", and were adapted to provide a way to issue instructions from one program to another, and pass the results back. The use of a data structure
    Code:
    Private Type COPYDATASTRUCT
        dwData As Long   ' Use this to identify your message
        cbData As Long   ' Number of bytes to be transferred
        lpData As Long   ' Address of data
    End Type
    provides the ability to identify different types of messages. In this example, I have used the type identifier to distinguish between integer, long, and string variables, but it could be used to identify anything.

    J.A. Coutts
    Attached Files Attached Files

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