vauna
vauna

Reputation: 1

Writing to and Reading from the Clipboard in an afxwin application

I'm updating a large application in C++, which uses afxwin. I want to copy/paste information between instances of the application using the clipboard. BUT in the afxwin header, the OpenClipboard function does not take any parameters, and does not seem to have a function for setting clipboard data. The descriptions I have found all say if you don't send an HWND to OpenClipboard call, the SetClipboardData will fail. Well, that's exactly what's happening.

Is there a way for an afxwin app to write to the clipboard or are the two mutually exclusive?

If I create an external package to interface with the clipboard, will that get around this limitation? Is there a valid reason for it?

I've searched Microsoft's user's guide (which is incredibly hard to follow) as well as stack overflow's information related to using the clipboard and other sites, too, which is why I think I may be up against something that can't be done.

Upvotes: 0

Views: 33

Answers (0)

Related Questions