Modems

  • Thread starter Thread starter Jeff Collett
  • Start date Start date
J

Jeff Collett

Hi,
Is there a Class or some related Windows programming interface for
Modems, vs writng my own for a specific modem? I would like to have the
ability to change modems and not have to change the code. I am thinking
there must be some MS API that does that.

Thanks
Jeff
 
Jeff,

I'm not aware of anything specific, but all you really need to do is open
the appropriate COM port and start sending AT commands down it. I vaguely
remember that there is a VB control that has a lot of the logic in it and
that might still be available for VB.Net. It was called something like
MSComm.

Paul.
 
Hi,

The API that you want is called TAPI, the Telephony API. .NET does not
provide a managed interface for these functions, so you have to use Platform
Invoke (P/Invoke) to call the underlying TAPI functions. If you use google
and the keywords TAPI .NET, you will find examples.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.
 
Hi,
Thanks, that sounds like what I need. We do now have an app that
responds to AT commans but want to get away from something that might
not work with all modems.

Jeff
 
Back
Top