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
Copy
Copy
Dec 1, 2010 at 8:11pm UTC
snackysniper
(18)
Is there a way to put text on the clip board for example "cat"
Thanks
Dec 1, 2010 at 8:22pm UTC
kbw
(9488)
Yes. Read about the Windows clipboard here.
http://msdn.microsoft.com/en-us/library/ms649014%28VS.85%29.aspx
You need to paste your text as CF_TEXT.
Dec 2, 2010 at 5:54pm UTC
snackysniper
(18)
wow that is very confusing ill have to work on this awhile
Dec 2, 2010 at 6:04pm UTC
kbw
(9488)
You call:
OpenClipboard
SetClipboardData
CloseClipboard
You have to pass in memory allocated with GlobalAlloc.
Check out the use of SetClipboardData in
http://msdn.microsoft.com/en-us/library/ms649016%28VS.85%29.aspx
Topic archived. No new replies allowed.