Results 1 to 7 of 7

Thread: Surely someone must know the answer - p'raps not!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    UK
    Posts
    7

    Post

    Al I want to do is cause my VB program to activate on the event of the modem commencing a dialling sequence - Whether it is activated by DUN, Application or even from Microsoft's Dialler - Would'nt have thought it difficult but by the lack of response to my query and the lack of extenive searching on the net that I have done I'm starting to think this simple task is impossible - Maybe you can say different!!!

  2. #2
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111

    Post

    Tis is possible, I think there is a article on how to do this at this site.

    ------------------
    DiGiTaIErRoR

  3. #3
    Guest

    Post

    I can tell you what i thinking of VB
    Never say it is impossible.

  4. #4
    Lively Member FirstKnight's Avatar
    Join Date
    Jul 1999
    Location
    Johannesburg, South Africa
    Posts
    95

    Post

    If I understand you correctly, then the solution is actually quite simple. Open your componenents list and add the MicroSoft Comm 6.0 control. Now all you have to do is double click on it and write the code for the OnComm event. Just make sure you set the control to the right comm port. Simple eyh?


    ------------------
    Hennie Pieterse
    Senior Programmer
    Datcor International
    [email protected]
    Telephone: +27 15 7816335
    ICQ Number : 61636095
    Today is yesterday's tomorrow

  5. #5

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    UK
    Posts
    7

    Post

    Thanks to those that have responded I shall look further into the site for the relevant information just in case I've missed it and I shall also try the ONCOMM event mentioned -Actually I think I have tried the ONCOMM event already and cannot recall as to why I discounted it, but will look further into it again just in case - Any other suggestions will still be appreciated... Many thanks once again... Steve

  6. #6

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    UK
    Posts
    7

    Post

    Yup I've tried MSCOMM and now remember why it was a problem - In using MSCOMM it siezes the port and then when it does you cannot dial out - The other option was to use TAPI to permit sharing but I believe I'm right when I say that when using TAPI it will not permit MSCOMM to detect when the modem is dialling out from another application - Ah well back to the drawing board I guess - Thanks anyway... Steve

  7. #7
    New Member
    Join Date
    Jun 2001
    Location
    Thirst is nothing, Image is Everything!
    Posts
    8
    This is a cheezy way of doing it, but you could always do a:

    Open "COM1:baud,parity,databits,stopbits" for random as #1

    so it would look like this:

    Open "COM1:2400,n,8,1" for random as #1

    and then use the error that the port is in use to be the flag that tells you the modem is being used... Probrably not what you were looking for, but its the thought that counts!

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