COM Using IPicture Interface
-
Hi! I need to pass a series of raw bitmaps in memory from c++ to VB (and then from VB to c++). Does anyone know how to do this? I am trying to encapsulate all the functions in a ActiveX, so i think i should pass my raw unmanaged c++ data to an Interface like IPicture or something like that. Thanks a Lot! JO.
JO :)
-
Hi! I need to pass a series of raw bitmaps in memory from c++ to VB (and then from VB to c++). Does anyone know how to do this? I am trying to encapsulate all the functions in a ActiveX, so i think i should pass my raw unmanaged c++ data to an Interface like IPicture or something like that. Thanks a Lot! JO.
JO :)
Ju@ncho wrote:
Hi! I need to pass a series of raw bitmaps in memory from c++ to VB (and then from VB to c++). Does anyone know how to do this? I am trying to encapsulate all the functions in a ActiveX, so i think i should pass my raw unmanaged c++ data to an Interface like IPicture or something like that.
You can use the function
OleCreatePictureIndirect
to create an IPicture wrapper around a bitmap. I think there are members of IPicture that allow you to render it to a bitmap to do the reverse. Nathan