All the CaptureScreen function does is create a compatible bitmap the same size as the screen and then write it out to disk, so you're seeing the default contents of the bitmap (black). To capture the screen you need to create a compatible DC, select the bitmap you made into it and blit from one DC to the other. Then you need to unselect your target bitmap before you start writing the file.
Stewart
2010-05-16 19:03:34