Hi!
Take a look to MSDN: type in "Clipboard", select "clipboard [Win32]" and read topics there - just Windows API functions. From what I understood, you need to use OpenClipboard(), CloseClipboard() and GetClipboardData() API functions and proper format of data in clipboard. To convert image in memory to file and vise versa - find "Bitmaps" topic for Platform SDK: Windows GDI. There is a reference to "Using Bitmaps" and then "Storing an Image" page. There is a C++ sample for writing bitmap into the file (though I afraid it will be hard to convert to VFP, but probably possible). Thats all that I found, maybe somebody else jump in and propose more simple solution.
>Anyone have suggestions on how we might be able to detect the presence of image data on the Windows clipboard and save this image data to a file? We would also like a way to load the contents of an image file to the clipboard where the image could be pasted into other applications. There are probably issues about image formats (ico, bmp, gif, jpg) that I should be worried about. Any thoughts on this 'worry' would be appreciated as well.
>
>Thanks!
>Malcolm
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.