home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR19
/
SNIP0693.ZIP
/
FILEOUT.DOC
< prev
next >
Wrap
Text File
|
1993-03-13
|
2KB
|
74 lines
READ THIS CAREFULLY!
The following three messages comprise a complete set. The first
two program files that can be compiled with Clipper 5.01 to
create two EXEs.
FILEOUT.PRG --> FILEOUT.EXE
This program converts a DOS file to a HEX dump file that can be
used by FILEIN.PRG to recreate the original file, byte for byte.
It will allow you to take an OBJ or EXE or COM (or ANY file for
that matter) and create a HEX dump file suitable for use by the
FILEIN program.
The purpose is to allow you to, for instance, transfer an OBJ
file to anyone over any e-mail system.
FILEIN.PRG --> FILEIN.EXE
This program is the counter part of the FILEOUT program. It reads
the HEX dump file created by FILEOUT and builds the original file
intact.
Both of these programs can be cut and compiled as-is and both will
compile cleanly and with no warnings.
___
The third message is an example file that can be used as soon as you
have it converted and the FILEIN.EXE program built. It is a simple
OBJ file that contains a single function from my library:
FUNCTION: _Cap_First( cCap_Str ) --> cString
PARAMETERS: cCap_Str : string to capitalize
DESCRIPTION: _Cap_First() will capitalize each first letter that
follows a space.
EXAMPLE: cString1 = 'now is the time for all good men'
cString2 = _Cap_First(cString1)
Result: cString2 = 'Now Is The Time For All Good Men'
To build it, cut the HEX dump file to a file of it's own. Call it
CAPFIRST.HEX (or whatever you like).
Then run the FILEIN.EXE program on it:
FILEIN CAPFIRST.HEX CAPFIRST.OBJ
The resulting CAPFIRST.OBJ can be linked with any Clipper 5.01
application without modification.
You can use the FILEOUT program to create HEX dumps of your own.
In my example, I used:
FILEOUT CAPFIRST.OBJ CAPFIRST.HEX
The resulting .HEX file is what you see in this third message.
Good luck. I welcome all comments: even if only to say how
weird I must be!
Kirby L. Wallace