clipboard
-
Is it possible to create a console application to send an image to the clipboard using:- c:\image.jpg (for example) as part of the command line parameter. I have just started learning C++ and am trying to create some simple console apps to get started. Regards Paul
-
Is it possible to create a console application to send an image to the clipboard using:- c:\image.jpg (for example) as part of the command line parameter. I have just started learning C++ and am trying to create some simple console apps to get started. Regards Paul
Yes... read the image file (look for hints and code in the forum and articles) and then use ::SetClipboardData() (look it up in MSDN ... there is also an example there.). Hope this helps. - tareq
-
Yes... read the image file (look for hints and code in the forum and articles) and then use ::SetClipboardData() (look it up in MSDN ... there is also an example there.). Hope this helps. - tareq
-
Thanks for the reply Can anyone tell me which header file I have to include to use the clipboard functions. Is it hust windows.h ?
Stirfie wrote: Can anyone tell me which header file I have to include to use the clipboard functions. They are in
winuser.h
which you get by includingwindows.h
.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
-
Thanks for the reply Can anyone tell me which header file I have to include to use the clipboard functions. Is it hust windows.h ?
The easiest way to find out what header/lib to use, look up the function in MSDN and at the bottom you'll find function information. Hope this helps. - tareq
-
The easiest way to find out what header/lib to use, look up the function in MSDN and at the bottom you'll find function information. Hope this helps. - tareq