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. The Lounge
  3. Dictionary object

Dictionary object

Scheduled Pinned Locked Moved The Lounge
c++helpquestioncom
3 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
    jkgh
    wrote on last edited by
    #1

    Hi, OK OK it's almost a programming question, but I'm not sure where I would ask it normally: I'm looking to implement enumeration aspect of the scripting Dictionary object. I know it in VB as the for each .. next construct (I'm not up to that stage in C++ COM yet). For the Standard [VB] Collection object, I know that I should return a pointer of interface type IUnknown to the objects _NewEnum enumerator object. I also have to give my new enumerator the procedure ID of (-4) [another magic number] to link it up. *How* do I work out what to implement for the 'Microsoft Scripting runtime' Dictionary object? I'm getting really annoyed with VB that things work if I put my magic numbers in but I don't know why or how. Worse still is that I haven't done enough time with VC yet to fix the problem, but it's coming slowley. Thanks in advance. Ref: "Creating Your Own Collection Class: The House of Bricks" in MSDN library just in case I've not explained my self very well. ATL Student :rolleyes:

    M 1 Reply Last reply
    0
    • J jkgh

      Hi, OK OK it's almost a programming question, but I'm not sure where I would ask it normally: I'm looking to implement enumeration aspect of the scripting Dictionary object. I know it in VB as the for each .. next construct (I'm not up to that stage in C++ COM yet). For the Standard [VB] Collection object, I know that I should return a pointer of interface type IUnknown to the objects _NewEnum enumerator object. I also have to give my new enumerator the procedure ID of (-4) [another magic number] to link it up. *How* do I work out what to implement for the 'Microsoft Scripting runtime' Dictionary object? I'm getting really annoyed with VB that things work if I put my magic numbers in but I don't know why or how. Worse still is that I haven't done enough time with VC yet to fix the problem, but it's coming slowley. Thanks in advance. Ref: "Creating Your Own Collection Class: The House of Bricks" in MSDN library just in case I've not explained my self very well. ATL Student :rolleyes:

      M Offline
      M Offline
      Matthew So Hong Kong
      wrote on last edited by
      #2

      ATL Student, Acutally your answer can be found from Wrox's ATL COM Programmer's reference by Richard Grimes on page 31. ;)

      J 1 Reply Last reply
      0
      • M Matthew So Hong Kong

        ATL Student, Acutally your answer can be found from Wrox's ATL COM Programmer's reference by Richard Grimes on page 31. ;)

        J Offline
        J Offline
        jkgh
        wrote on last edited by
        #3

        .. and that is .. ATL Student :rolleyes:

        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