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. COM
  4. IDL question

IDL question

Scheduled Pinned Locked Moved COM
questiondata-structures
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.
  • L Offline
    L Offline
    LasVegasGuy
    wrote on last edited by
    #1

    This one is for IDL gurus!! Given a structure similar to the following, defined in IDL typedef struct { long something; [string]wchar_t * someotherthing; [string]wchar_t * yetanotherthing; }SOMESTRUCT I need my component to return a collection of SOMESTRUCT structures. (The exact number of SOMESTRUCT structures is not known until runtime) There are two options here 1. Use an open(or whatever) array of SOMESTRUCT structures. Can someone give me the IDL for this? 2. Define IEnumXXX for the SOMESTRUCT structure. Is there some sample code somewhere? thanks Man Learns from History that he never learns from History

    J 1 Reply Last reply
    0
    • L LasVegasGuy

      This one is for IDL gurus!! Given a structure similar to the following, defined in IDL typedef struct { long something; [string]wchar_t * someotherthing; [string]wchar_t * yetanotherthing; }SOMESTRUCT I need my component to return a collection of SOMESTRUCT structures. (The exact number of SOMESTRUCT structures is not known until runtime) There are two options here 1. Use an open(or whatever) array of SOMESTRUCT structures. Can someone give me the IDL for this? 2. Define IEnumXXX for the SOMESTRUCT structure. Is there some sample code somewhere? thanks Man Learns from History that he never learns from History

      J Offline
      J Offline
      Jorgen Sigvardsson
      wrote on last edited by
      #2

      Go for the first alternative. The syntax is the same as for basic types IIRC. -- Komm tu mir langsam weh, leg mir die Ketten an und zieh die Knoten fest, damit ich lachen kann I blog too now[^]

      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