How to return an IPICTURE handle to VB from VC++
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Hi , I"m working on an image processing application and I need a way to convert/return a BITMAP handle to IPicture, so that I can show the return IPicture in VB.PictureBox control. Nathani
Hi Nathani, In VC++ use CoCreateInstance() to create the IPicure COM object. Then select the bitmap and everything and then pass the handle to VB using IPicture::get_Handle(). Do not worry about process boundaries, since it is the same process. Ivor S. Sargoytchev Dundas Software