Solved

Creating a COleClientItem from a bitmap

Posted on 2001-07-15
1
395 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
Comment Utility
Try setting the first param of CreateFromClipboard to OLERENDER_NONE or OLERENDER_ASIS

Or try using CreateStaticFromClipboard()

-- Dan
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now