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. TLB problem !!!

TLB problem !!!

Scheduled Pinned Locked Moved COM
helpcomquestion
2 Posts 2 Posters 4 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
    Lost User
    wrote on last edited by
    #1

    My .tlb file generated by MIDL converts the interface function parameters of type BOOL to long. So, when I'm trying to call that methode I've got a compiler error. What's a problem ?

    J 1 Reply Last reply
    0
    • L Lost User

      My .tlb file generated by MIDL converts the interface function parameters of type BOOL to long. So, when I'm trying to call that methode I've got a compiler error. What's a problem ?

      J Offline
      J Offline
      Joseph Dempsey
      wrote on last edited by
      #2

      your problem is that MIDL doesn't support the BOOL data type. In your .idl or .odl file (depending on what you're using) change the BOOL to boolean and then in the actual class implementation change it from BOOL to unsigned char. Try to find a table somewhere of data type mapping from MIDL to C++. O'Reilly's DCOM book has good examples of this. Hope this helps. Joseph Dempsey jdempsey@cox.rr.com Joseph.Dempsey@thermobio.com "Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning." --anonymous

      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