Hi!
Anyone knows how to copy text to clipboard in console program?
Printable View
Hi!
Anyone knows how to copy text to clipboard in console program?
If you need to call EmptyClipboard(), which looks like is a good idea, then create a dummy window and never show it.Quote:
If an application calls OpenClipboard() with hwnd set to NULL, EmptyClipboard() sets the clipboard owner to NULL; this causes SetClipboardData() to fail.
gg