Web-Enabled Clients

If you look into the project directory for the ATLCyberServer component, you will see an HTML file (ATLCyberOcr.htm) that embeds the ATLCyberOcr ActiveX control. The ATL Object Wizard is so sure that you will distribute your ActiveX control across the web that it generates this file for you. You will update this web page and turn it into a thin, web-enabled client. At the end of this section, you will have built a web page as shown in Figure 8-6. Just like any other web page, this one can be downloaded from a web server and displayed within Internet Explorer (IE 3.0 or greater). Since IE is an ActiveX container, it can house ActiveX controls.

A thin web-based client

Figure 8-6. A thin web-based client

Let’s briefly describe this web page. It contains a simple table with seven rows, as described below:

  1. The first row is trivial, as it simply displays some text.

  2. The second row is composed of six pushbuttons that allow a user to specify the preferred choice.

  3. The third row is split into two columns. The right column allows a user to enter the remote server address for the target OCRServer component, which was developed in Chapter 6.

  4. The fourth row allows a user to enter the full path and image file of the image to be OCR processed.

  5. The fifth row contains the Wang Image Edit ActiveX control, which is a fully capable image viewer developed by Wang and is shipped freely with Windows NT (4.0 and above). ...

Get Learning DCOM now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.