cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
How to copy an image file into clipboard
How to copy an image file into clipboard in windows without MSVS tools
Nov 30, 2018 at 10:25am UTC
dkaip
(196)
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?
Nov 30, 2018 at 12:03pm UTC
coder777
(8444)
I would think that most if not all tools where you can edit an image will do.
Nov 30, 2018 at 1:04pm UTC
Ganado
(6812)
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
Nov 30, 2018 at 6:15pm UTC
jonnin
(11441)
system("clip < filename"); //I have not tried this. It may only work for text files. ?
Last edited on
Nov 30, 2018 at 6:16pm UTC
Topic archived. No new replies allowed.