Computing.Net > Forums > Windows 3.1 > WFW 3.11/QBasic 4.5/Com ports

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

WFW 3.11/QBasic 4.5/Com ports

Reply to Message Icon

Name: Valerie (by Garibaldi)
Date: March 1, 2004 at 20:56:57 Pacific
OS: Dos 7.1/WFW 3.11
CPU/Ram: 486DX/4mb
Comment:

I run a prog (written in QBasic 4.5) which outputs to a comport under DOS without any problems. The same prog run under WFW 3.11 gives no output at the comport. Can anyone advise how to address the comports in WFW and/or how to determine the comport addresses in WFW.

Yes, I have asked this question on other forums, including DOS and programming forums, without success.

Thanks

V...



Sponsored Link
Ads by Google

Response Number 1
Name: wizard-fred
Date: March 1, 2004 at 22:49:51 Pacific
Reply:

Programs written for DOS assume exclusive use of ports. Windows programs use drivers that control the use of the ports.

I thought there may be a setup option in Windows. Something about setting exclusive use. Otherwise goto DOS to run the application.


0

Response Number 2
Name: Valerie (by Garibaldi)
Date: March 2, 2004 at 13:39:16 Pacific
Reply:

Thanks Wizard-Fred - yours is the most sensible response I've had in many months. Now to look for settings or mention of drivers.

Thanks again

V...


0

Response Number 3
Name: wizard-fred
Date: March 3, 2004 at 00:19:21 Pacific
Reply:

More info. Actually there was originally planned the use of INT 14, but it was so badly implemented that developers took to writing to the ports directly.

One of the best sites for I/O processing is lvr.com. However, most of the stuff now is for new things, .NET and USB. Many links are available.

Do you have the source of your QuickBasic 4.5 application? Does it have to write to the COMM port? The possible solutions are direct writing to the ports or installing somelike a API or DLL that will intercept and pass the signals through. Or there is the case of the big-rewrite. Or just get a stand alone DOS machine. (cheapest alternative)


0

Response Number 4
Name: Valerie (by Garibaldi)
Date: March 3, 2004 at 13:31:22 Pacific
Reply:

Thanks again WF.

Yes I have the source of the QB prog, I wrote it. The prog controls the keying of a a transmitter (ol' fashioned Morse code) so, yes, it does have to output to a Com or serial port which it does ok in DOS but just for the heck of it I want to get it operating in WFW. The 'puter I use is almost dedicated to this prog so it's not a b-i-g hassle but it annoys me that I cannot find the reason for not being able to run it in WFW.

Cheers

V...


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Windows 3.0 CD rom Will this work?



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 3.1 Forum Home


Sponsored links

Ads by Google


Results for: WFW 3.11/QBasic 4.5/Com ports

WFW 3.11 gave me 5 floppys www.computing.net/answers/windows-31/wfw-311-gave-me-5-floppys/3188.html

Wfw 3.11 and Internet Explorer www.computing.net/answers/windows-31/wfw-311-and-internet-explorer/8262.html

Lpt port in win 3.1and wfw 3.11 www.computing.net/answers/windows-31/lpt-port-in-win-31and-wfw-311/6211.html