Solved

CPictureHolder

Posted on 1998-11-23
2
529 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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 111
Named range not carried over 10 66
Doc'in system (example?) BA 7 120
Updating statistics with error notification email in SQL server 4 117
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: 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…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

679 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