Using Clipboard Class

  • Thread starter Thread starter Nithi Gurusamy
  • Start date Start date
N

Nithi Gurusamy

Hello everyone:

I am new to .NET world.

Someone please show me how to use the Clipboard class in an unmanaged code.
Assume I have a MFC CString variable strText. How to put the value in
strText into the clipboard using the managed extension class Clipboard.

Thanks
Nithi
 
Nithi,
Someone please show me how to use the Clipboard class in an unmanaged code.
Assume I have a MFC CString variable strText. How to put the value in
strText into the clipboard using the managed extension class Clipboard.

If you're working with MFC, why would you want to use .NET just to access
the clipboard, when it can be so easily accessed from the unmanaged world
using the OpenClipboard(), SetClipboardData(), GetClipboardData() and
related WIN32 apis?
 
Back
Top