I've been doing win32 for a little while now and I've just encountered a bit of a problem making a program to take a screenshot. Even after finding a convenient msdn article: http://msdn.microsoft.com/library/de...tmaps_7zfp.asp I was still unable to do this. Currently with the help of these MSDN functions, it writes a corrupted (black?) bitmap file. Several other attempts at creating the headers and getting it all written out resulted in empty or corrupted. The souce is attached, originally I was just screwing around with the effect repeated BitBlt's GetDC(GetDesktopWindow()) but now I want to get that into a bitmap file.



LinkBack URL
About LinkBacks


