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. How to Silence an Activex 's errors

How to Silence an Activex 's errors

Scheduled Pinned Locked Moved C / C++ / MFC
comhardwarehelptutorial
3 Posts 3 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.
  • B Offline
    B Offline
    Buck
    wrote on last edited by
    #1

    Hi, I've got a 3rd party activex control embedded in a dialog App, occassionally the activex generates an unspecified error resulting in a blank error message box, Whilst the errors aren't integral to my main application, And if necessary I can work arround them, The Messagebox is a pain, Anyone know how to silence an activex from doing this, Regardz Colin Davies

    A 1 Reply Last reply
    0
    • B Buck

      Hi, I've got a 3rd party activex control embedded in a dialog App, occassionally the activex generates an unspecified error resulting in a blank error message box, Whilst the errors aren't integral to my main application, And if necessary I can work arround them, The Messagebox is a pain, Anyone know how to silence an activex from doing this, Regardz Colin Davies

      A Offline
      A Offline
      Alvaro Mendez
      wrote on last edited by
      #2

      Geez, talk about a crappy ActiveX control! It just goes ahead and displays error messages when there's a problem and to top it off, the message is blank! I suggest you call these guys up and tell them to send you an improved version. If they refuse, tell them you'll be happy to disclose to the world what a "wonderful" product they have. That may get them going... If you don't want to go that route, then I suggest you look at writing yourself a system-wide Hook DLL. Then when you detect the message box is about to come up, you can close it down quietly. That's one not-so-nice way to do it, but it's the only way I know of. I had to do something similar a couple of years ago and I got a great jump start from an article I found in CodeGuru -- I don't know if CodeProject has anything like it yet. Good luck! Alvaro

      C 1 Reply Last reply
      0
      • A Alvaro Mendez

        Geez, talk about a crappy ActiveX control! It just goes ahead and displays error messages when there's a problem and to top it off, the message is blank! I suggest you call these guys up and tell them to send you an improved version. If they refuse, tell them you'll be happy to disclose to the world what a "wonderful" product they have. That may get them going... If you don't want to go that route, then I suggest you look at writing yourself a system-wide Hook DLL. Then when you detect the message box is about to come up, you can close it down quietly. That's one not-so-nice way to do it, but it's the only way I know of. I had to do something similar a couple of years ago and I got a great jump start from an article I found in CodeGuru -- I don't know if CodeProject has anything like it yet. Good luck! Alvaro

        C Offline
        C Offline
        Colin davies
        wrote on last edited by
        #3

        Alvaro, the ActiveX is actually a real popular one, on client machines its the swflash.ocx, I bet you have it and unfortunatly its free so I can't hound the makers.
        And actually it's my code that causes the errors, I'm asking it for a variable name that doesn't exist in its structure. Unfortunatly if I don't ask I don't know if it exists. I know this sounds illogical.
        But there is no way of enumerating the variable structure it appears.
        I'll see what I can do with a hook :-)

        Regardz

        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