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. Importing foreign types in IDL File

Importing foreign types in IDL File

Scheduled Pinned Locked Moved ATL / WTL / STL
c++sysadminjsonquestion
2 Posts 1 Posters 1 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
    morenz
    wrote on last edited by
    #1

    Hello Folks! ;) I'm trying to build a DCOM server that interfaces a foreign API (National Instruments IMAQ Vision, for precision). I implemented my ATL object, created interface, and added methods.... some of them use, in parameters, native types defined in the API library (I got a LIB + 1 .H files), so I wrote, at the beginning of my IDL file: import "nivision.h"; and continued adding methods. When I compiled, I got MIDL errors indicating redefinitions on 80% of typedefs in .H file. What's wrong? Me, probably?:laugh: I can post or send code, if needed. Thanks in advance, Morenz

    M 1 Reply Last reply
    0
    • M morenz

      Hello Folks! ;) I'm trying to build a DCOM server that interfaces a foreign API (National Instruments IMAQ Vision, for precision). I implemented my ATL object, created interface, and added methods.... some of them use, in parameters, native types defined in the API library (I got a LIB + 1 .H files), so I wrote, at the beginning of my IDL file: import "nivision.h"; and continued adding methods. When I compiled, I got MIDL errors indicating redefinitions on 80% of typedefs in .H file. What's wrong? Me, probably?:laugh: I can post or send code, if needed. Thanks in advance, Morenz

      M Offline
      M Offline
      morenz
      wrote on last edited by
      #2

      Yep, it was me, in part :laugh: The other part goes to National Instruments, which header file I had to modify by 80%, commenting out redefinitions (they referred 'em as "forward delarations"... in fact in an MFC app worked well, but MIDL compiler was not so happy... Now I'm trying to obtain from NI a "simpler" way to make an ATL server with their types without destroying their headers.... :laugh: Bye Morenz

      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