README.TXT for Modula-2 Windows Editor                      25-Mar-92/Bj
TERRA Datentechnik, Tech Support
-------------------------------------------------------------------------

The program 'M2WINEDI' gives you a good overview on the power of
Windows programming. Take into consideration that with only about
50kB of Modula-2 source we get a full editing functionality.

Notes about the development:

- The program has been produced as a standard WINDOWS project.
  The only extra compiler options are (*/DATA:M/WIN:A*).
  /DATA:M = Medium memory model for data. We recommend to use
            this model whenever possible. Many Windows functions
            are based on this model, see LocalAloc and related
            functions.

  /WIN:A  = see 'Programmer's Guide' page 1-18. You only have to
            set this option for modules which contain 'Windows-
            CallBack' procedures. Procedure attribut '[WINDOWS, LONG]'.

- Of course, you need to have the Microsoft Windows SDK to reproduce
  the program.

       Needed to reproduce M2WINEDI:
               WINSTUB.EXE - Tells 'This program requires..'
               RC.EXE      - The resource compiler for .RC files
               RCPP.EXE
               RCPP.ERR
               WINDOWS.H   - Windows C-Headerfile needed from RC.EXE

       Not needed to reproduce M2WINEDI, but for any new developments:
               SDKPAINT.EXE - Icon editor
               SDKPAINT.DAT
               DIALOG.EXE   - Dialog editor

- There is a typing error in the file 'WINDOWS.DEF' which results in an
  unresolved external during linking:
  The export name of the function 'IsClipboardFormatAvailable' should
  be ['ISCLIPBOARDFORMATAVAILABLE'] and not ['ISCLIPBOARDAVAILABLE'].

  Change file: SRC\WINDOWS.DEF  (approx. line 6200) to:

  PROCEDURE IsClipboardFormatAvailable
                        ['ISCLIPBOARDFORMATAVAILABLE']
                                         (format : UINT)     : BOOL
       [LARGE, LONG, ALTERS(AX, BX, CX, DX, ES)];

  and compile with default options.

  Dont't worry about version checking since the module is flagged with
  '\NOCHECK:M'.

- To allow you to debug the example we M2MAKEed the program with
  'VERSION:DEBUG'. No further special compiler or linker options
  were specified.
                               ***
