Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. COM Using IPicture Interface

COM Using IPicture Interface

Scheduled Pinned Locked Moved ATL / WTL / STL
comc++performancetutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Ju ncho
    wrote on last edited by
    #1

    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 :)

    N 1 Reply Last reply
    0
    • J Ju ncho

      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 :)

      N Offline
      N Offline
      Nathan Holt at EMOM
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups