Results 1 to 5 of 5

Thread: Programming for a Direct Cable Connection

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2000
    Posts
    44
    This should be a fairly easy one, but I don't have any info on Directcc.exe or the relevant Windows API that may be involved. WHat I want to do is have the program load Directcc.exe (which I have done via shell), and automatically "listen" or "talk" dependent on how directcc.exe has been setup on the machine (at the moment all it does is SendKeys "{Enter}" to click on the talk/listen button). Now it needs to wait until a connection is made, and then proceed with the rest of the code (which is working). Your help will be very welcome!

    Matt
    VB5 Enterprise, C++Builder 5, JBuilder 3.5 (so far unused )

  2. #2
    Guest
    Add a DoEvents after the SendKeys.

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2000
    Posts
    44
    That doesn't let me know that the connection is present. I need to know that the other computer's connected before the rest of the program runs.
    VB5 Enterprise, C++Builder 5, JBuilder 3.5 (so far unused )

  4. #4
    Guest
    A DoEvents will wait until that task processes and completes before moving on to the next part of the code.

  5. #5

    Thread Starter
    Member
    Join Date
    Feb 2000
    Posts
    44
    Yeah, it will wait for it to complete, but this process can complete after either a) Connecting to the other computer or b)Connection timing out. I want to trap for these results, and only process the rest of the instructions after result a) is found.
    VB5 Enterprise, C++Builder 5, JBuilder 3.5 (so far unused )

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