How to copy an image file into clipboard in windows without MSVS tools

Hello.
I never have use MSVS tools, i just use C::B.
I have a problem.
I need to copy a bitmap to clipboard without MFC, because of tools that i use(C::B and g++).
Is that possible some way in windows?
I would think that most if not all tools where you can edit an image will do.
I don't understand the question. Is it your program producing the bitmap, or someone else's?

Check out MS's pages on Clipboard Format:
https://docs.microsoft.com/en-us/windows/desktop/dataxchg/clipboard-formats
See also this SO post about a problem someone was having with using the clipboard with images:
https://stackoverflow.com/questions/15689541/win32-clipboard-and-alpha-channel-images
system("clip < filename"); //I have not tried this. It may only work for text files. ?

Last edited on
Topic archived. No new replies allowed.