Solved

CPictureHolder

Posted on 1998-11-23
2
532 Views
Last Modified: 2013-11-20
How to get a .BMP file into CPictureHolder, please? Or since I do know how to get a .BMP file into DIB, tell me how to get from DIB to CPictureHolder at least. Thanks.
0
Comment
Question by:stehlik
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
jstolan earned 100 total points
ID: 1325171
CPictureHolder::CreateFromBitmap

Or is that too easy?  It's not hard to go from a bmp file into a CBitmap, and that's widely published in Microsoft's help documentation.
0
 

Author Comment

by:stehlik
ID: 1325172
I put a wrong question, sorry. In reality it's like this: I take .BMP, convert it to DIB, then to CLongBinary and store it in a database. The question is how to convert CLongBinary (a pointer to DIB data retrieved from database) into CPictureHolder. This is what I need to know.
But DIB and .BMP should be very close (if not the same), so I would probably need just help with the CreateFromBitmap. The truth is I haven't managed to get it working. HBITMAP is not the same as pointer to my DIB, most probably. It either crashed or didn't create the bitmap (there was just nothing).

There are probably different DIB formats as well - I do use the format that is somehow compatible with LeadTools 8.0's SetDIB() method for displaying picture in LeadTools control.
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.

738 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