Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

modem /initializaiton string calls

Status
Not open for further replies.

kathyc20

Programmer
Mar 7, 2001
96
CA
I am writing a program in Visual Basic that needs to set the modem properties, such as...

CommPort = 2
Settings = "300,n,8,1"
InBufferSize = 0
OutBufferSize = 0
Handshaking = 0

and a moden initialition string such as....
atS10=250

I need to find out if there is an api call I can use, and if so, which one(s). I have tried searching on this and can't seem to locate anything.

Any help would be appreciated.


 
Press Ctrl+T and add the Microsoft Comm Control to your project.
[tt]
With MSComm1
.CommPort = 2
.Settings = "300,n,8,1"
.InBufferSize = 0
.OutBufferSize = 0
.Handshaking = 0
End With
[/tt]



Real men don't use Interrupt 21h.
 
I am currently using the mscom control through
visual basic and it is not setting up the
parameters.

What I'm doing is setting up the comm parameters
and then shelling out to an external program that
is to use the above parameters, but the program
is not accepting them.
 
I am a bit confused about why you want (or need) to have two programs perform the tasks of one program.

I can't think of an easy way to this... really, I can't even think of a hard way to do it. Doesn't the shelled application try to use its own parameters when communicating with the modem?


Real men don't use Interrupt 21h.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top