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. why does my activex control register unsuccessfully?

why does my activex control register unsuccessfully?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++comsysadmindocker
4 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.
  • E Offline
    E Offline
    eraccn
    wrote on last edited by
    #1

    I've tested in ActiveX test container which runs very well,when user have register such control,it runs quickly.But when I've use web to automatically register this control,it always represents red x on web.By the way,I use MFC activeX with MFC share DLL and open all the access right for activex control,meanwhile, I've add the server ip to trusted zone.Can somebody give me a help?

    Later buggers harm more.

    S B 2 Replies Last reply
    0
    • E eraccn

      I've tested in ActiveX test container which runs very well,when user have register such control,it runs quickly.But when I've use web to automatically register this control,it always represents red x on web.By the way,I use MFC activeX with MFC share DLL and open all the access right for activex control,meanwhile, I've add the server ip to trusted zone.Can somebody give me a help?

      Later buggers harm more.

      S Offline
      S Offline
      Suneet 03
      wrote on last edited by
      #2

      I think u r using a cab file for downloading the activex. Is your control getting downloaded, jus check it in Tools->Internet Options->General->View Objects in ur browser This is the place your ActiveX once downloaded gets displayed. UnRegister previous ActiveX registered , u can use regsvr32 -u cmd

      1 Reply Last reply
      0
      • E eraccn

        I've tested in ActiveX test container which runs very well,when user have register such control,it runs quickly.But when I've use web to automatically register this control,it always represents red x on web.By the way,I use MFC activeX with MFC share DLL and open all the access right for activex control,meanwhile, I've add the server ip to trusted zone.Can somebody give me a help?

        Later buggers harm more.

        B Offline
        B Offline
        bob16972
        wrote on last edited by
        #3

        ActiveX controls must exist on the machine your browser resides on (Downloading if necessary if the "codebase=" contains a valid path to the cab when not already installed on users machine). ActiveX controls, by default, have access to anything an executable has access to so when running them from within a browser, security restrictions kick in and protect people from running ActiveX controls that are not declared "Safe for scripting" in the registry. The control can also implement a specific interface to be "safe for scripting" if the programmer desires. If you run the .htm file with an .hta extension on your local machine, browser security should not restrict you. If this is not an option, then you will likely need to research the security restriction for ActiveX controls in browser based environments. Be forewarned, ActiveX controls are easy security breaches so their value in the web world was quickly diminished in the late 90's.

        E 1 Reply Last reply
        0
        • B bob16972

          ActiveX controls must exist on the machine your browser resides on (Downloading if necessary if the "codebase=" contains a valid path to the cab when not already installed on users machine). ActiveX controls, by default, have access to anything an executable has access to so when running them from within a browser, security restrictions kick in and protect people from running ActiveX controls that are not declared "Safe for scripting" in the registry. The control can also implement a specific interface to be "safe for scripting" if the programmer desires. If you run the .htm file with an .hta extension on your local machine, browser security should not restrict you. If this is not an option, then you will likely need to research the security restriction for ActiveX controls in browser based environments. Be forewarned, ActiveX controls are easy security breaches so their value in the web world was quickly diminished in the late 90's.

          E Offline
          E Offline
          eraccn
          wrote on last edited by
          #4

          Thanks a lot

          Later buggers harm more.

          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