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. Passing structure through variant

Passing structure through variant

Scheduled Pinned Locked Moved COM
comsysadminhelpquestion
4 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.
  • A Offline
    A Offline
    ATM CodeProject
    wrote on last edited by
    #1

    Hi all, I want to pass a userdefined structure using variant from a COM client to COM server. Can any one help me?... Regards Arun

    P 1 Reply Last reply
    0
    • A ATM CodeProject

      Hi all, I want to pass a userdefined structure using variant from a COM client to COM server. Can any one help me?... Regards Arun

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      You need to use idl file. Refer this[^] article by ioannhs_s.

      A 1 Reply Last reply
      0
      • P prasad_som

        You need to use idl file. Refer this[^] article by ioannhs_s.

        A Offline
        A Offline
        ATM CodeProject
        wrote on last edited by
        #3

        Thanks for the reply. I already got this article.But recordinfo failure occurs at that time. Do u have any example?. Now i can pass the structure to the COM server without using VARIANT.

        P 1 Reply Last reply
        0
        • A ATM CodeProject

          Thanks for the reply. I already got this article.But recordinfo failure occurs at that time. Do u have any example?. Now i can pass the structure to the COM server without using VARIANT.

          P Offline
          P Offline
          prasad_som
          wrote on last edited by
          #4

          Arun Menon wrote:

          But recordinfo failure occurs at that time

          What kind of error is this?

          Arun Menon wrote:

          Now i can pass the structure to the COM server without using VARIANT.

          As said earlier and shown in article, use idl to declare structure as interface. You can use it as function parameter.

          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