home *** CD-ROM | disk | FTP | other *** search
-
- This directory contains a library, written in Assembly,
- that allows Netware function calls to be performed from Turbo Pascal
- programs. It also contains two examples of how this library can be
- accessed from Turbo Pascal code.
-
- The file "PASNETA.ASM" contains assembly code that performs the
- NetWare function calls. "SAMPLE1.COM" and "SAMPLE2.COM" are two
- examples of how these assembly routines may be accessed.
-
- The file "SAMPLE1.COM" can be run by typing SAMPLE1 at the command
- line. This program relies on the function definitions found in "PASCAL.PAS".
- Therefore, the declaration:
- " function xtndopn(var mode,handle:integer;var filename:str):integer;
- external 'pasneta'; "
- must appear in the pascal program.
-
-
- The " PASCAL.PAS " file, can also be inserted into a pascal program to
- declare all the "external functions" to be used in the pascal program.
- This was used in the "SAMPLE2.PAS" program. This method requires the
- declaration :
- " function xtndopn(var mode,handle:integer;var filename:str):integer;
- external 'PASNETA.COM'; "
- to appear in the pascal program.
-
- If it becomes necessary to recompile the PASNETA.ASM file, the following
- steps can be used.
-
- 1. First assemble the .ASM file. ie - masm pasneta;
- 2. Next, link the resulting .OBJ to make a .EXE file.
- (A .EXE file will be produced even if the message (warning no
- stack segment) appears.)
- 3. Finally, to make the .EXE a .BIN or .COM use the DOS
- command line function EXE2BIN.
- ie.- EXE2BIN pasneta.exe pasneta.bin or
- - EXE2BIN pasneta.exe pasneta.com
- (NOTE - A .COM or .BIN file is required to link into a turbo
- pascal program.)
-
-
- Any questions can be submitted to the programming bulletin board on
- NetWire.