PDA

Click to See Complete Forum and Search --> : Surely someone must know the answer - p'raps not!


LaserSec
Jan 19th, 2000, 07:27 AM
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!!!

DiGiTaIErRoR
Jan 19th, 2000, 10:14 AM
Tis is possible, I think there is a article on how to do this at this site.

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

Jan 19th, 2000, 08:26 PM
I can tell you what i thinking of VB
Never say it is impossible. :) :) :) :)

FirstKnight
Jan 19th, 2000, 08:43 PM
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
hennie@nix.co.za
Telephone: +27 15 7816335
ICQ Number : 61636095
Today is yesterday's tomorrow

LaserSec
Jan 20th, 2000, 01:56 AM
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

LaserSec
Jan 20th, 2000, 04:16 AM
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

maloney
Jun 15th, 2001, 02:07 AM
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!