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 object and global pointers [modified]

COM object and global pointers [modified]

Scheduled Pinned Locked Moved ATL / WTL / STL
c++comdesignhardwarequestion
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.
  • M Offline
    M Offline
    Monty2
    wrote on last edited by
    #1

    I have an MFC based dialog exe (VS2005 just one dialog) it has some global pointers which are initialized when the exe starts up. I added an ATL COM object to the project (enabled ATL support) now i call methods on this COM object through another process, everything goes on fine but in the called methods the global pointers appear NULL, seems the like the COM object is created in some other context can someone shed more light into this. [Edit] OK i just found out that even if the EXE is running windows still runs it one more time with arguments(/Embedded) this completely screws up my design (which is apparently flawed) is there some way out? [/Edit] Thanks.


    C++ where friends have access to your private members !

    modified on Tuesday, January 08, 2008 5:31:20 AM

    L 1 Reply Last reply
    0
    • M Monty2

      I have an MFC based dialog exe (VS2005 just one dialog) it has some global pointers which are initialized when the exe starts up. I added an ATL COM object to the project (enabled ATL support) now i call methods on this COM object through another process, everything goes on fine but in the called methods the global pointers appear NULL, seems the like the COM object is created in some other context can someone shed more light into this. [Edit] OK i just found out that even if the EXE is running windows still runs it one more time with arguments(/Embedded) this completely screws up my design (which is apparently flawed) is there some way out? [/Edit] Thanks.


      C++ where friends have access to your private members !

      modified on Tuesday, January 08, 2008 5:31:20 AM

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Monty2 wrote:

      is there some way out?

      Of what? We don't know what problem you are trying to solve. If you require interprocess communications I would not suggest COM as a solution, it is far to complex for most IPC requirements. But, I really don't know what problem you are trying to solve so that may not help you at all.

      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