Category : C Source Code
Archive   : SCR2TC20.ZIP
Filename : SCR2TC20.DOC

 
Output of file : SCR2TC20.DOC contained in archive : SCR2TC20.ZIP
For Turbo C 2.0 ------>


@@@ @@@ @@@ @@ @@@@@ @@@
@ @ @ @ @ @ @ @
@@@ @ @@@ @ @ @
@ @ @ @ @ @ @
@@@ @@@ @ @ @@@@ @ @@@


version 2.0 08-23-1989
written by D. Biscuits

This program is PD.



Scr2TC is a program I wrote when I discovered Turbo C
did not want to compile the screens I created using
TheDraw when I saved them in the C format. This program
converts these uncompilable files into files that Turbo
C can understand. It is a program which is expanding
and will probably never be finished.

The files saved in C format must be saved in NORMAL
mode, not CRUNCHED or ASCII, in order for this program
to properly create a usable header file.

To run, just type SCR2TC at the DOS prompt and enter
the file names when prompted. After entering the file
names you will be asked to choose a file format.
Currently there are only two: C format and binary
format. Select one of the above depending on how you
saved the screen in TheDraw.

With version 2.0, I have re-written the entire C format
routine to allow the use of random length files, i.e.
the size of screens that are saved with the block save
may be of a different size than screens saved by using
Alt-S.
The binary format routine determines the length, also,
so the ImageData variable length may be of a size other
than 4000.

Below is a demonstration program showing how to use a
file created by Scr2TC:

#include
#include /* File containing image. */

main()
{
.
.
.
puttext(1,1,80,23,ScrData);
.
.
.
}

Sample run of Scr2TC:

C>SCR2TC
==============================================================================
|| Scr2TC - Released 08-23-1989 || Written by D. Biscuits. ||
===-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-===
| v2.0 |
========

Converts files saved in various formats from TheDraw to a format recognized
by Turbo C.

This program is released into the PD.
NOTE: Input and output files MUST be different.

Enter input file: TEST.H
Enter output file: NEWTEST.H

Choose a format to convert from:
1 - C format saved by TheDraw
2 - Binary format saved by TheDraw
3 - ANSI <*** NOT YET AVAILABLE ***>
Any other key to exit.
-=> 1
C>

End sample run.


-- Program History --
Version 1: 08-15-1989
Whipped up a small program in BASIC to read the C
format file and convert it. It was limited and VERY
slow. Re-wrote it in C, but still it was limited in
the sense that the program required that the full
screen be saved and the ImageData variable be 4000
bytes in length.

Version 2: 08-23-1989
Re-wrote the whole C format routine. It will now
properly convert screens that are other than the full
screen size.
Binary format added and debugged.

Scr2TC written by Doggy B.



  3 Responses to “Category : C Source Code
Archive   : SCR2TC20.ZIP
Filename : SCR2TC20.DOC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/