Building Web Applications with Visual C++

aa266578(v=vs.60).md    

Visual C++ Internet programming support includes Microsoft Foundation Class (MFC) classes for writing ActiveX controls, code components, and Active documents; MFC classes for retrieving files and information using Internet protocols such as FTP and HTTP; and MFC classes for extending Web servers with custom programming. You can use your knowledge of Visual C++ to create high-performance server-side components that perform complex business processing as part of your Web applications.

New with this release are features that make it possible for you to host Dynamic HTML within your MFC applications, ATL support for Dynamic HTML, and MFC wrappers for the Internet Explorer Common Controls.

This section provides an overview of the following Visual C++ features for developing Web applications.

  • The CHtmlView class
  • ATL support for Dynamic HTML
  • MFC wrappers for the Internet Explorer Common Controls

For More Information   See https://msdn.microsoft.com/en-us/library/aa279344(v=vs.60) , online in MSDN Library Visual Studio 6.0.

Dynamic HTML Hosting with CHtmlView

The CHtmlView class makes it possible for you to host Dynamic HTML within your MFC applications. With CHtmlView, your application's view can display HTML pages that contain Dynamic HTML just as a Web browser would display them. CHtmlView provides many browser features, including:

  • Browsing Web sites, as well as folders in the local file system and on a network.
  • Browsing via point-and-click hyperlinks.
  • Browsing via Uniform Resource Locator (URL) navigation.
  • A history list that users can use to browse forward and backward through previously browsed sites, folders, and documents.
  • Favorites (bookmarks).
  • Security features.

For More Information   See the following topics online in MSDN Library Visual Studio 6.0.

ATL Support for Dynamic HTML Controls

You can create an ATL project that displays a control with Dynamic HTML capability in a Web browser or other container. An ATL HTML control hosts the WebBrowser control and makes it possible for you to specify the user interface of the control using HTML. The control sets up a mechanism to communicate between C++ code and HTML.

A DHTML control is similar to any other ATL control, except that the control includes an additional dispatch interface for communicating from the HTML user interface and an HTML resource file. You can communicate with the HTML user interface using the DHTML object model. To communicate from HTML to your C++ code, use the window.external mechanism provided by DHTML.

For More Information   See the following topics online in MSDN Library Visual Studio 6.0.

-

MFC Wrappers for Internet Explorer Common Controls

MFC provides support for the latest Internet Explorer common controls in classes such as CComboBoxEx, CDateTimeCtrl, CIPAddressCtrl, and CMonthCalCtrl. You can access these controls from the Controls toolbar in the Dialog Editor. The following table provides more information about each of these classes.

Class Control Description
CComboBoxEx Extended combo box Extends the combo box control by providing support for image lists.
CDateTimeCtrl Date and time picker Supports either an extended edit control or a simple calendar interface control, both of which make it possible for a user to choose a specific date or time value.
CIPAddressCtrl Similar to an edit control Supports an edit box for manipulating an Internet Protocol (IP) address.
CMonthCalCtrl Month calendar Supports a simple calendar interface control that allows a user to select a date.

For More Information   See the following topics online in MSDN Library Visual Studio 6.0.

-