Solved

Creating a COleClientItem from a bitmap

Posted on 2001-07-15
1
402 Views
Last Modified: 2013-11-20
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?
0
Comment
Question by:GGRUNDY
1 Comment
 
LVL 49

Accepted Solution

by:
DanRollins earned 200 total points
ID: 6306960
Try setting the first param of CreateFromClipboard to OLERENDER_NONE or OLERENDER_ASIS

Or try using CreateStaticFromClipboard()

-- Dan
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ORA-01403: no data found 43 101
Define unique primary key 9 93
Excel Use VBA to get user's Mac Address for their computer 5 175
no14 challenge 14 69
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question