Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> borland delphi</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Borland Delphi
------------------------------------------------------------------------------
 Delphi programs must use NOVLIB.DLL (16 bit) or NOVLIB95.DLL (32 bit under
 Windows 95).

 Two pre-compiled units containing all the NOVLIB function declarations
 (NOVLIB.DCU) are provided, one for 16 bit programming, and one for 32 bit
 complete with source, (NOVLIB.PAS) and are required in order to use NOVLIB
 with Delphi programs. Make sure that the appropriate compiled unit (16 or
 32 bit version of NOVLIB.DCU) is copied to your DELPHI\LIB directory (or in
 a directory specified in the Unit Directories list box on the
 Directories/Conditionals page of the Project Options dialog box) before
 using NOVLIB in your Delphi projects.

 NOVLIB is written to be Delphi `aware'. Unlike many DLLs that may be used
 with Delphi, NOVLIB accepts and returns the Delphi string data type
 directly, allowing you to easily use NOVLIB in your programs without the
 tedious data type conversions required to access `C' style strings. There
 are a very few function arguments and return values that exceed the length
 restrictions of the Delphi String type (255 bytes), in which case the PChar
 or Byte data types are used, but these are by far the exception rather
 than the rule.

 NOVLIB Data Types and Delphi

 When reading the function reference section of this manual, you will notice
 that each function argument and return value is denoted by a variable that
 has a `hungarian' prefix denoting the type of the variable that is
 expected. The following table lists the hungarian prefixes and the
 corresponding Delphi data type.

 Prefix  Parameter Type                  Delphi Type
 b       Boolean                         WordBool
 dw      Unsigned 32 bit integer         Longint
 i       16 bit signed integer           Integer
 l       Signed 32 bit integer           Longint
 lpby    Long pointer to byte            Byte
 lpdw    Long pointer to 32 bit integer  Longint
 lpsz    Long pointer to ASCIIZ string   String
 w       16 bit unsigned integer         Integer

 NOVLIB functions that return a `date' actually return a string to Delphi in
 the ANSI format `YYYYMMDD'.

 Using NOVLIB in your Delphi programs

 NOVLIB supports 16 bit Delphi programs running under Windows 3.x, Windows
 95 and Windows NT, and supports 32 bit programs under Windows 95.
 In order to call NOVLIB functions from your Delphi programs, you need to
 inform Delphi that you are using the NOVLIB unit in your program. This is
 achieved by adding `Novlib' to the `uses' clause in the interface section
 of your program or unit. For example:

 unit Novdemo;
 interface

 uses
    SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics,
    Controls,Forms, Dialogs, StdCtrls, TabNotBk, Novlib;

 Note that the word `Novlib' is case sensitive, and should be specified
 exactly as above or you will encounter compile time errors.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson