How to display an MFC View in a web browser?
-
This seems such an obvious thing to need to do but I've failed to find any good references. Can anyone help please? I have an MFC app which uses the Doc/View architecture. One of the document types it can display is a registered file type: the file is in a private binary format, and based on a code value in the file a config file is selected: the binary file is then rendered using the config file into a read-only text file in a CEditView within the app. OK so far? this works fine. What I want to do is as follows. Let's say an intranet .aspx web page contains a link to the binary file, perhaps along with some summary text extracted separately. When the user clicks on the link, the view changes to the same text as would be displayed in my MFC app. What's the best way to do this? ActiveX control? other ideas? This is a company intranet application, the binary file would be located on one of the company file servers. It is acceptable for my MFC app to require to be installed on the local machine, so any required controls/DLLs etc could be installed at the same time.
-
This seems such an obvious thing to need to do but I've failed to find any good references. Can anyone help please? I have an MFC app which uses the Doc/View architecture. One of the document types it can display is a registered file type: the file is in a private binary format, and based on a code value in the file a config file is selected: the binary file is then rendered using the config file into a read-only text file in a CEditView within the app. OK so far? this works fine. What I want to do is as follows. Let's say an intranet .aspx web page contains a link to the binary file, perhaps along with some summary text extracted separately. When the user clicks on the link, the view changes to the same text as would be displayed in my MFC app. What's the best way to do this? ActiveX control? other ideas? This is a company intranet application, the binary file would be located on one of the company file servers. It is acceptable for my MFC app to require to be installed on the local machine, so any required controls/DLLs etc could be installed at the same time.
Paul Steane wrote:
ActiveX control?
Yep :)
virtual void BeHappy() = 0;