C# and handle to Clipboard
Posted on 2003-11-11
I am trying to copy an image to a clipboard and then get a handle to the clipboard using API calls GetClipboardData() in C#.
Following is the snippet of our code. Could any one please point out what am I missing here since I never get the handle to the object on clipboard
DataObject m_data = new DataObject();
hDib = GetClipboardData(CF_DIB); // CF_DIB = 8;
hDib returned is always 0 where it actually had to return a handle to the clipboard;
Thanks in Advance.