- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have written a program to do listings on an old serial printer, using the SPORT routines (IVF ver 9.1.025). For files 132 characters wide or less, it works just fine, but when I do a wider file, the program stops, emitting result = 996. What am I missing ?
Thanks
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't think it is a limitation of the device. The Fortran I am writing is to replace a program written in 1987 in QuickBasic, that still runs on an old XT (which may fail at any time)hooked up to the printer, and it works just fine with wide listings.
20071 OPEN "COM1: 1200,E,7,1,ASC,LF" FOR OUTPUT AS #2 is what I am trying to set up in Fortran. I thinkthe problem may be related to "ASC" ASCII mode, which I have set to use Xon/Xoff. There are a few other parameters in the SPORT_SET_STATE_EX that I don't understand that may need adjusting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A timely workaround would be for you to call the Win32 API routines yourself, such as CreateFile, SetCommState, WriteFile, etc. You'll have more control over what is happening.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The program runs without actually being connected to the serial printer, and stops at exactly the same place as it does when being connected. So:
1. Should I submit source code to Premier support, and report this as a possible bug ?
2. Do you have an sample bit of source code that uses the Win32 API routines ?
Thanks
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page