skip to main
|
skip to sidebar
2008/03/18
print the content of the clipboard as text (Windows)
getclip.cpp
#include "Windows.h"
#include "stdio.h"
#define CB_SUCCESS 0
#define CB_GET_FAILED 1
#define CB_CANT_OPEN 2
int main(int argc, char* argv[])
{
if ( !OpenClipboard(NULL) )
return CB_CANT_OPEN;
HANDLE hData;
if (hData = GetClipboardData( CF_TEXT ))
{
printf("%s", (char *)hData);
}
CloseClipboard();
return (hData == NULL) ? (CB_GET_FAILED):(CB_SUCCESS);
}
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)
notebook
Posts
Atom
Posts
All Comments
Atom
All Comments
Links
del.icio.us/teki321
twitter [ENG]
twitter [HUN]
repcsi.hu - Family blog [HUN]
Krisz's blog - Cooking [HUN]
Labels
blog
(1)
dev
(1)
python
(1)
ruby
(1)
tool
(10)
Blog Archive
▼
2008
(3)
►
December
(1)
Python: changing the class of an instance
▼
March
(1)
print the content of the clipboard as text (Window...
►
January
(1)
Ruby and VIM
►
2007
(8)
►
April
(2)
Windows Freeware Diff/Merge application
Processing Tag files with Ruby
►
March
(2)
Mercurial - status produces wrong slashes on Windo...
Mercurial - kdiff3 - hgmerge
►
February
(2)
bzrvss
SPE - python ide download link
►
January
(2)
bazaar merge plugin: extmerge
bazaar, Mercurial, darcs
►
2006
(4)
►
December
(3)
bzr-gtk
Bazzar in practice, WinMerge patch, bzr-gtk
VSS -> Bazaar
►
November
(1)
Initial post