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. Contrilling Smart App's from internal Web pages

Contrilling Smart App's from internal Web pages

Scheduled Pinned Locked Moved C / C++ / MFC
c++htmlwindows-adminhelptutorial
2 Posts 2 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.
  • P Offline
    P Offline
    Peter Tewkesbury
    wrote on last edited by
    #1

    Hi. I am developing a Visual C++, MFC/ATL app. I have a HTML view so I can display HTML web pages which are stored in a CHM file or direct on disk. I want to be able to have a button on the web page which when pressed will call a function in my application. (Ie. Click Here to create a new document, File|New menu option) If you look at Microsoft Help for active directory, you get pages where you can click on a button which will open the MMC for Users & Computers in Active Directory. Does anyone have any Ideas how to do this? Thanks. Peter Tewkesbury Developer

    H 1 Reply Last reply
    0
    • P Peter Tewkesbury

      Hi. I am developing a Visual C++, MFC/ATL app. I have a HTML view so I can display HTML web pages which are stored in a CHM file or direct on disk. I want to be able to have a button on the web page which when pressed will call a function in my application. (Ie. Click Here to create a new document, File|New menu option) If you look at Microsoft Help for active directory, you get pages where you can click on a button which will open the MMC for Users & Computers in Active Directory. Does anyone have any Ideas how to do this? Thanks. Peter Tewkesbury Developer

      H Offline
      H Offline
      HENDRIK R
      wrote on last edited by
      #2

      Hello, to call an application's function out of a html page, you should use the the external object provided in JavaScript. To be able to react on the fuction call, you've to implement the IDispatch interface in your application, there handling GetExternal(). This function is called whenever a call to external is done inside a web page. To get more information, you should search MSDN for "webbrowser customization" or chtmlview and IDispatch.

      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