"Fossies" - the Fresh Open Source Software Archive

Member "hp2xx-3.4.4/doc/hp2xx_nt" (21 Jun 2003, 1936 Bytes) of package /linux/misc/old/hp2xx-3.4.4.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 ===================================================
    2 
    3 How to generate .EXE for HP2xx
    4 Jim Shaw
    5 
    6 To generate this project from the distribution using C++ Builder 3 and the
    7 IDE:
    8 
    9 1.  extract the distribution into a directory. (example: c:\data\hp2xx)
   10 
   11 2.  start C++Builder, and create a new console application, choosing
   12     no VCL and creating an .EXE.  Save the "empty" application in the
   13     directory you used in step1/sources. (example: c:\data\hp2xx\sources)
   14 
   15 3.  The .cpp file created in step 2 has the standard function 'main'
   16     predefined.  However, we want to use the 'main' that came with
   17     hp2xx in the file std_main.c.  Since the .cpp file must always
   18     contain some kind of reference to main, we will do a #define main
   19     to satisify that requirement.  Then, we will comment out the
   20     predefined main code to avoid duplication.  The main that gets used
   21     will then be the main in 'std_main.c'.
   22 
   23     In the .cpp file created in step 2, add the line
   24         #define main
   25     after the includes, and before going on to step 4.
   26 
   27 4.  In the .cpp file, comment out the lines
   28        int main(int argc, char **argv)
   29        {
   30              return 0;
   31        }
   32 
   33 5.  Add the units necessary to compile the program (Project|Add to
   34 Project).
   35     This may be hp2xx version and installation dependent.  Here is a
   36     (perhaps partial) list:
   37 
   38       std_main.c
   39       hp2xx.c
   40       picbuf.c
   41       no_prev.c
   42       to_eps.c
   43       to_img.c
   44       to_pbm.c
   45       to_pcl.c
   46       to_pcx.c
   47       to_rgip.c
   48       to_vec.c
   49       bresnham.c
   50       bresnham.h
   51       chardraw.c
   52       chardraw.h
   53       getopt.c
   54       getopt.h
   55       getopt1.c
   56       hpgl.c
   57       iff.h
   58       ilbm.h
   59       to_fig.c
   60       clip.c
   61 
   62 6.  edit picbuf.c file: in the line before  #include <unistd.h>  add
   63        #ifndef _NO_VCL
   64     in the line after  #include <unistd.h> add
   65        #endif
   66 
   67 7.  Build the project.  You will get many warnings, but should not
   68     get any errors.