Qbasicnews.com

Full Version: Help with a modem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a problem with a program, compiled using QuickBasic 4.50, which I haven't been able to solve for years. I hope you can help me.

There's a lot more than this in my application, but the portion of source code that doesn't work is:
0230 Open "COM2:9600, N, 8, 1, PE, ASC" for RANDOM AS #2
0240 SLEEP 1
0250 PRINT #2, "ATZ"

When I run it from Windows 95, I get an error 68 at stno 0230, (Device Unavailable) but I can't figure out why. I have tried various configurations in the properties when I right-click the Windows 95 desktop icon for it, but no luck.

It seems everything else in the program works fine, (creating, appending, I/O, sorting of disk files) except that Windows 95 won't allow opening a COM port with a modem from the compiled .exe file. I tried opening the COM port interactively in basica, but that doesn't work either... and my modem works fine with other application software.

I've also downloaded and read various information from QB sites, but it's all very complex information which would require another level of programming expertise to understand and implement. I am hoping for either a simple "no, there's no solution", or a solution that doesn't require an expert to implement.

Thank you...
This should work
http://usuarios.lycos.es/antonigual/qbso...inimal.zip
..if your modem is not a Winmodem. A Winmodem can't be accessed by DOS (unless someone does a Windows slave program to do this Big Grin )
Nope, not a winmodem. It's a Motorola SM56 PCI Speakerphone Modem.