Creating a COleClientItem from a bitmap

I want to create a COleClientItem from a DIB bitmap.
If I save it to a file and use CreateFromFile everything works fine, but if I put it on the clipboard and use CreateFromClipboard I get a OLE_E_STATIC error happening.
Is there anyway I can create to embeded object without having to create the file?
LVL 3
GGRUNDYAsked:
Who is Participating?
 
DanRollinsConnect With a Mentor Commented:
Try setting the first param of CreateFromClipboard to OLERENDER_NONE or OLERENDER_ASIS

Or try using CreateStaticFromClipboard()

-- Dan
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.