12.12.2012 Views

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Quiz<br />

Build<strong>in</strong>g Internet Applications<br />

3. When the Import OLE Control dialog box appears, select Microsoft Internet<br />

Controls <strong>in</strong> the Registered Controls list.<br />

4. Make sure the Palette page entry is set to Internet so that the new control will<br />

be <strong>in</strong>stalled onto the Internet page of the <strong>C++</strong>Builder Component Palette.<br />

5. Click OK and then click OK aga<strong>in</strong>. You should see a new control named<br />

TWebBrowser on the Internet page of <strong>C++</strong>Builder’s Component Palette. This<br />

is the Microsoft Internet Explorer 3.0 browser implemented as an OLE<br />

control. Browser applications that you build us<strong>in</strong>g it will have the same basic<br />

functionality as Microsoft Internet Explorer 3.0 itself.<br />

1. What <strong>C++</strong>Builder component would you use to build your own Internet<br />

newsreader application?<br />

2. What event is fired by the THTML control before a document is retrieved?<br />

3. What property of the THTML control conta<strong>in</strong>s the address of the current Web page?<br />

4. What component would you use to construct an FTP utility?<br />

Exercises<br />

1. Change the browser you created today to use the Microsoft Internet Explorer 3.0<br />

OCX control <strong>in</strong>stead.<br />

2. Construct a <strong>C++</strong>Builder application that allows you to subscribe and post to<br />

newsgroups.<br />

3. Construct a <strong>C++</strong>Builder exception handler than sends e-mail when an application<br />

exception is thrown.<br />

4. Construct server and client W<strong>in</strong>Sock applications that talk to one another us<strong>in</strong>g<br />

the TCP component.<br />

5. Build an application that automatically attaches to a given FTP site and downloads<br />

any files that you don’t already have.<br />

485<br />

13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!