home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / OS2 / SSAVER2X.ZIP / SAMPLE11.TXT < prev    next >
Text File  |  1993-12-14  |  3KB  |  68 lines

  1. Hi ScreenSaver module developer!
  2. ================================
  3.  
  4. This is version 1.1 of the sample ScreenSaver module.
  5.  
  6.  
  7. Changes since version 1.0
  8. -------------------------
  9.  
  10. There are some minor enhancements to the original code.
  11. There is limited support for compiling with Borland C++ now. See below for
  12. more info on that.
  13. The old (version 1.0) code STILL WORKS. The code that was added since
  14. version 1.0 should solve the idle-priority problem that prevented the saver
  15. modules from doing their action when CPU usage of other programs was 100%.
  16. Most of the changes are to avoid compiler warnings from Borland C++.
  17.  
  18. Changes in the source files since version 1.0 are marked like the follwoing:
  19.     // !!!!! line added since version 1.0
  20.  
  21. The following files have changed:
  22.     sample.def:    one line changed
  23.     sample.mak:    (limited) support for Borland C++, minor enhancements
  24.     sample.c:    changes & code added
  25. The following files have not changed:
  26.     sample.h:    no changes
  27.     sample.rc:    no changes
  28.     sample.dlg:    no changes
  29. The following files were added:
  30.     minirtl.c:    (only needed for compiling with Borland C++)
  31.     bccdll0.asm:    (only needed for compiling with Borland C++)
  32.     sample11.txt:    this file
  33.  
  34. It should not be too much work to incorporate the changes in SAMPLE.C if
  35. you have written code for version 1.0.
  36. I suggest you cut your code and paste it into the new SAMPLE.C. An utility
  37. like "Visual Compare" (all/diskutil/vc132.zip on ftp.cdrom.com) might be
  38. useful for that.
  39.  
  40.  
  41. Compiling with Borland C++
  42. --------------------------
  43.  
  44. Because of initialization problems with the Borland C runtime library (RTL),
  45. you MUST NOT use ANY RTL-functions (malloc, free, strcpy, _beginthread, srand,
  46. rand, fopen, open, printf etc.).
  47. In the file MINIRTL.C you can find some useful C library functions as source
  48. code. If you link your module with MINIRTL.OBJ, you can use those
  49. functions in your module. DO NOT use any other rtl functions. DO NOT link
  50. your module with one of the Borland libraries (C2*.LIB) (OS2.LIB is ok).
  51. DO NOT link with the startup code supplied by Borland (C02*.OBJ). Use the
  52. startup code BCCDLL0.ASM instead.
  53.  
  54. This seems rather complicated, but in fact all you have to do is uncomment
  55. the "USE_BCC=1" line in SAMPLE.MAK and type "MAKE -F SAMPLE.MAK".
  56.  
  57.  
  58. ------------------------------------------------------
  59.  
  60. If you are going to write saver modules, please get in contact with me.
  61.  
  62. If you have any questions, just contact me via e-mail.
  63.  
  64. Greetings
  65.  
  66. Siegfried Hanisch
  67. hanisch@swwwnext.tuwien.ac.at
  68.