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