PDA

View Full Version : Load image from memory to picture control MFC c++ vs2008



Jenno
November 23, 2009, 12:35:37
Hey, im trying to load an image from memory of my DFK 21AUC03 camera into a picture control in my MFC application that uses non-modal dialogs in which my picture control is placed. So far i managed to save the image as .bmp file and then load it dinamically(without use of resources), but the process of saving file and the loading it to picture control is too slow, so i was thinking of loading it directly from memory. Is there any way to do this using IC control functions? If not, i would appreciate any tips regarding this problem.

Im using VS2008, language is C++

Stefan Geissler
November 23, 2009, 15:21:39
Hi,

You use the PictureBox control in MFC? I think it is easier to use a simple CStatic, get its DC and draw into as shown in the ChildView.cpp if the Demoapp.

Why do you use the PictureBox?