hi
I am trying to copy an image to a clipboard and then get a
handle to the clipboard using API calls GetClipboardDat a().
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.I mage);
Clipboard.SetDa taObject(m_data ,false);
hDib = GetClipboardDat a(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 GetClipboardDat a().
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.I mage);
Clipboard.SetDa taObject(m_data ,false);
hDib = GetClipboardDat a(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
Comment