*************************************************************************
This zipped file contains two different solutions to the same problem:
How to do a screen capture of a VFP application and save the result to
a BMP file on disk. There are a number of other solutions to this problem,
but most (if not all) require that a DLL be registered on the user's
machine. This is not always possible in a "locked-down" environment where
a user does not have permission to register a DLL. The following two
solutions do not require any DLL registration.

These two solutions are zipped into two separate files.
*************************************************************************

Solution 1 uses the Windows API to capture the image to your clipboard,
and then code (SAVEBMP.PRG) to save that capture to disk.
Credit for this code goes to Antonio Muoz de Burgos y Caravaca and
Jaime Vasquez.

Here is an example of how to use this code:

DECLARE INTEGER keybd_event IN Win32API ;
           INTEGER, INTEGER, INTEGER, INTEGER

=keybd_event(44, 1, 0, 0)

DO SaveBmp with 'C:\Temp\temp.bmp'
*************************************************************************


Solution 2 uses a class written by Alexander Golovlev called the
"GDI+ image class". This code was posted for download on the Universal
Thread.


Here is an example of how to use this code:

#include gpImage.h

SET PROCEDURE TO gpImage

gdip = CreateObject("gpInit")
img = CreateObject("gpImage")

Declare Long FindWindow in Win32API String ClassName, String WindowName
wnd = FindWindow(_SCREEN.Activeform.Name, NULL)
img.Capture(wnd)
img.SaveAsBMP("C:\TEMP\TEMP.BMP")
*************************************************************************

[End of README.TXT]