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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

accessing the com port on a tapi fax modem

Status
Not open for further replies.

goltar

Programmer
Mar 9, 2012
3
US
hi guy's, i'am a newbie hear don't know where to post my stuff. I'am writing a auto dialer in qbasic 64 with windows 7. I have a usb dial up data/fax modem. Fax works great but my program is not talking to the usb modem hears what i did to access the com port in qbasic

OPEN"COM1:9600,N,8,1" AS FOR RANDOM #1
SUCCESS OPENING USB COM PORT

THEN I DID THIS
PRINT #1,"ATDT"

error message as follows

bad file name line 14
i use line numbers is there a reason why it telling me this it does not like print#1,"atdt" thats where i'am getting the error from what do i need to add please help goltar
 
another error message my computer is unable to dial out with the print #1 statement keeps giving me errors like bad filename line 14 what am i doing wrong when i added com(1) on it says syntax error same thing with com(1) off
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top