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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top