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. Webbrowser control + ActiveX

Webbrowser control + ActiveX

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

    Hi, Is it possible to enable/allow ActiveX controls inside my webbrowser control (CHtmlView). Please do not say it is not possible! :-( :-( Niki PS: Background: I'm writing a database application where data is stored in html format. There are also popups (similar to the old WinHelp32) which are implemented using JavaScript (or similar things; these scripts are not written by me). When I open such a HTML file directly in IE I get the security warning (even when all files are local). In my webbrowser control I even do not get a warning but only script errors.

    N 1 Reply Last reply
    0
    • N nobaq

      Hi, Is it possible to enable/allow ActiveX controls inside my webbrowser control (CHtmlView). Please do not say it is not possible! :-( :-( Niki PS: Background: I'm writing a database application where data is stored in html format. There are also popups (similar to the old WinHelp32) which are implemented using JavaScript (or similar things; these scripts are not written by me). When I open such a HTML file directly in IE I get the security warning (even when all files are local). In my webbrowser control I even do not get a warning but only script errors.

      N Offline
      N Offline
      nobaq
      wrote on last edited by
      #2

      I have found CoInternetSetFeatureEnabled. But nothing changes :-( I have already set FEATURE_WEBOC_POPUPMANAGEMENT, FEATURE_SECURITYBAND, FEATURE_LOCALMACHINE_LOCKDOWN, FEATURE_RESTRICT_ACTIVEXINSTALL. But nothing changes :( I again get a script error with "Permission denied" :(

      N 1 Reply Last reply
      0
      • N nobaq

        I have found CoInternetSetFeatureEnabled. But nothing changes :-( I have already set FEATURE_WEBOC_POPUPMANAGEMENT, FEATURE_SECURITYBAND, FEATURE_LOCALMACHINE_LOCKDOWN, FEATURE_RESTRICT_ACTIVEXINSTALL. But nothing changes :( I again get a script error with "Permission denied" :(

        N Offline
        N Offline
        nobaq
        wrote on last edited by
        #3

        The problem was not the browser control itself but my async pluggable protocol! I missed to handle PARSE_SECURE_URL for the secure manager so two different URLs in my protocol were essentially in a different domain. So I got "permission denied"-messages when accessing different frames (cross frame scripting prevention) Regards, Niki

        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