home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / PMFREMEM.ZIP / README.DOC < prev   
Text File  |  1990-08-09  |  1KB  |  21 lines

  1. FREEMEM.EXE is a program for OS/2 Presentation Manager V. 1.2 which
  2. displays the amount of free memory available on the system in a small window
  3. on the screen.
  4.  
  5. FREEMEM.EXE is taken from Charles Petzold's book "Programming the Presentation
  6. Manager" from Microsoft Press.  I have included the source, nmake, and .DEF
  7. files.  The .exe file has been compiled using Microsoft's os2.lib V. 1.2.  
  8. If you want to run it on V. 1.1, you'll have to recompile the source and link
  9. to the older libraries - Maybe it will run okay on V. 1.1 systems, 
  10. but I doubt it.
  11.  
  12. When the code is compiled using warning level 3, a warning error is generated
  13. due to the lack of a type cast on parameter 7 of the WinCreateStdWindow()
  14. PM function call.  It works okay regardless of the error.  If you want to 
  15. avoid the error, type cast the 7th parameter to (HMODULE) as follows:
  16.  
  17.     hwndFrame = WinCreateStdWindow (HWND_DESKTOP, WS_VISIBLE,
  18.                                     &flFrameFlags, szClientClass, NULL,
  19.                                     0L, (HMODULE) NULL, 0, &hwndClient ) ;
  20.  
  21.                     Mike Mackey 8-9-90