R
Roohi
hi
I am trying to copy an image to a clipboard and then get a
handle to the clipboard using API calls GetClipboardData().
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
<snippet>
OpenClipboard(0);
DataObject m_data = new DataObject();
m_data.SetData(DataFormats.Dib,imgCardImage.Image);
Clipboard.SetDataObject(m_data,false);
hDib = GetClipboardData(CF_DIB); // CF_DIB = 8;
</snippet>
hDib returned is always 0 where it actually had to return
a handle to the clipboard;
Thanks in Advance.
~Roohi
I am trying to copy an image to a clipboard and then get a
handle to the clipboard using API calls GetClipboardData().
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
<snippet>
OpenClipboard(0);
DataObject m_data = new DataObject();
m_data.SetData(DataFormats.Dib,imgCardImage.Image);
Clipboard.SetDataObject(m_data,false);
hDib = GetClipboardData(CF_DIB); // CF_DIB = 8;
</snippet>
hDib returned is always 0 where it actually had to return
a handle to the clipboard;
Thanks in Advance.
~Roohi