Dictionary object
-
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:
-
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:
ATL Student, Acutally your answer can be found from Wrox's ATL COM Programmer's reference by Richard Grimes on page 31. ;)
-
ATL Student, Acutally your answer can be found from Wrox's ATL COM Programmer's reference by Richard Grimes on page 31. ;)