Results 1 to 4 of 4

Thread: Using DDE to control another (hidden) VB app?

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Location
    Singapore
    Posts
    32

    Post

    Hi,
    How do I use DDE in one application to send data to another VB app?
    I still can't make sense from those Excel examples in MSDN, thank you.

  2. #2
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Taipei
    Posts
    318

    Post

    I tried the same time using VB4 and VB5 to send command forward and backward, including many to one com.
    DDE does works, but ....
    you have to aware about the synchronisation problem. For example pgm A send command to B, once after sent, A will continue (may send another command) while B is still in process, which will cause data loss ....

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 1999
    Location
    Singapore
    Posts
    32

    Post

    Hmm..
    Than what's the best solution?
    Thanks.

  4. #4
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Taipei
    Posts
    318

    Post

    I suggest you to use C to write DLL, (I wrote small sample before, but it is not stable), which can control the DDE acknowlegement. In VB, it seems to me that the problem is whenever your program receive, it will do the acknowledgement to the sender. If you use C++, you can defer the acknowledgement until you finish the processing. But, I am not sure whether this will hang-up the sender program.
    I always get annoyed with the synchronisation when writing windows program.

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