Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to capture the Desktop Window into a jpeg image?
Message
From
11/11/2003 15:56:05
 
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00847508
Message ID:
00848876
Views:
21
Hi Alexander,

I have unzipped the capture.zip into the directory capture. I have tried the capture.dll and it works.

I have also tried to rebuild it using VC++ 6.0. When I open the capture.dsw, the project only contains 2 source files: capture.cpp and stdafx.cpp, 1 header file: stdafx.h, and the ReadMe.txt. If I just build the capture.dll, I will get fatal error C1083: Cannot open include file: 'GdiPlus.h': No such file or directory. I also notice that basetsd.h is added to External Dependencies. I believe the error is actually normal since capture.cpp has the #include "GdiPlus.h". So, I copied all the gdiplus*.h from the Platform SDK to the capture directory and try building the dll again. Well, this time I got a lot of errors and I kind of figure out that the errors are caused by having an older version of stdafx.h in the C:\Program Files\Microsoft Visual Studio\VC98\Include directory. So, I copied the one from Platform SDK. Then I only get fatal error LNK1181: cannot open input file "gdiplus.lib". So, I copied the one from Platform SDK to the capture directory. Finally, I can rebuild the capture.dll.

I guess now I just need to understand the capture.cpp and add some error/exception checking.:-)

Thank you,

Peter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform