Solved

Creating a COleClientItem from a bitmap

Posted on 2001-07-15
1
407 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Prevent this page from creating additional dialogs. 3 604
while loop over for loop 7 115
abstract class with all non abstract mentods 6 79
MaxSpan challenge 9 104
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

789 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