?
Solved

CPictureHolder

Posted on 1998-11-23
2
Medium Priority
?
539 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
2 Comments
 
LVL 2

Accepted Solution

by:
jstolan earned 200 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

850 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