PDA

View Full Version : How can I issue AT commands in VC++ ?



Cube
10-10-2001, 07:33 AM
Hi !

I want to issue simple AT commands when programming in Visual C++ 6.0 , but don't know how to do it .

In VB it is simple, since there is the mscomm OCX, which is easy to use.

Is there a class in VC++ that I can use ?

Please help,
Cube

adrianxw
10-10-2001, 07:45 AM
Assuming you mean Hayes "AT" commands, and assuming you are connected to a regular port, you can get a handle to the port using the CreateFile() API function, then use the "by handle" I/O functions to write anything you like out.

For more functionality, search google or similar for "TAPI". That is the Intel/MS telephony API.