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. C / C++ / MFC
  4. ISupportErorrInfo

ISupportErorrInfo

Scheduled Pinned Locked Moved C / C++ / MFC
helpwpfwcfquestion
1 Posts 1 Posters 5 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.
  • H Offline
    H Offline
    Henk
    wrote on last edited by
    #1

    Hello all, I have a strange problem relating to ISupportErrorInfo. I have a component implemented as a collection class. This class is created as an MTS component and I added the _NewEnum, Item and Count properties to it, so I can use it as a collection. This all goes well. But now I added the ISupportErrorInfo interface. When something doesn't go as I want I do [ccode] return Error( L"My Message", IID_IMyInterface, E_FAIL); [/ccode] so I can see the error in a VB client with the Err object. But strange thing is that this only works with late binding, not with early binding. So if I declare a variable with [ccode] Dim obj as OBject [/ccode] I can see the error with err.description, but when I declare it with [ccode] Dim Obj as MyInterface [/ccode] it doesn't work that way and the Err.description simply tells me that "method 'SomeMethod' of component 'MyInterface' fails"!!!!! Anybody has a clue what I could have done wrong? I use NT ws4 sp6 and VS6 sp3 TIA Henk

    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