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.

474 Day 13<br />

The Basics<br />

Because <strong>C++</strong>Builder’s underly<strong>in</strong>g language is <strong>C++</strong>, and <strong>C++</strong> is such a popular programm<strong>in</strong>g<br />

language, you can do almost anyth<strong>in</strong>g you’d like <strong>in</strong> <strong>C++</strong>Builder, <strong>in</strong>clud<strong>in</strong>g build Internet<br />

applications. The specifications have been published and the necessary <strong>in</strong>terfaces established<br />

to build Internet applications from scratch us<strong>in</strong>g <strong>C++</strong>Builder, if that’s your pleasure. Like any<br />

other natively compiled <strong>C++</strong> environment, you could <strong>in</strong>clude the appropriate header files<br />

and code whole Internet applications <strong>in</strong> <strong>C++</strong> if you really wanted to.<br />

But that would remove the biggest and best reason for us<strong>in</strong>g a tool like <strong>C++</strong>Builder <strong>in</strong> the first<br />

place—its expediency. You use RAD (rapid application development) tools like <strong>C++</strong>Builder<br />

because they’re fast. At the same time, you don’t want someth<strong>in</strong>g that’s just thrown<br />

together—you want a tool that generates efficient executables efficiently.<br />

<strong>C++</strong>Builder really sh<strong>in</strong>es <strong>in</strong> its capability to construct natively compiled executables through<br />

dragg<strong>in</strong>g and dropp<strong>in</strong>g components. Like its elder sister Delphi, <strong>C++</strong>Builder comb<strong>in</strong>es the<br />

best of the object-oriented and component-based development models to provide a development<br />

platform that is easy to use and extremely powerful.<br />

What does this have to do with Internet development? Well, for starters, it means that, thanks<br />

to <strong>C++</strong>Builder’s Internet component set, you can build Internet-related applications as easily<br />

as any other type of application—by dropp<strong>in</strong>g components on a form. It also means that you<br />

can extend these components to enhance them, while still be<strong>in</strong>g able to manipulate low-level<br />

API details, if you need to, because <strong>C++</strong>Builder is natively compiled and <strong>C++</strong> based.<br />

To work directly with the low-level APIs (for example, ISAPI) that are required to build<br />

Internet client and server applications, your tool of choice must be able to use and construct<br />

DLLs and to utilize the published <strong>in</strong>terfaces to these DLLs. <strong>C++</strong>Builder is natively compiled<br />

and can both use and create DLLs. Also, because it’s <strong>C++</strong> based, <strong>in</strong>terfaces to all the major<br />

Internet-related APIs are readily available for it. What you have <strong>in</strong> <strong>C++</strong>Builder is the Swiss<br />

Army Knife of W<strong>in</strong>32 development. Whether it’s a game, a database program, or an Internet<br />

application, you’ll f<strong>in</strong>d that <strong>C++</strong>Builder takes you where you want to go and even makes the<br />

trip somewhat enjoyable.<br />

A Tour of the Internet Component<br />

Palette Page<br />

Before we get started build<strong>in</strong>g your Web browser, let’s take a brief tour of the components<br />

on the Internet page of the <strong>C++</strong>Builder Component Palette. Although you’ll only use one<br />

of these components <strong>in</strong> today’s sample project, it’s helpful to know what’s available to you.<br />

Table 13.1 lists each component and describes its function.

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

Saved successfully!

Ooh no, something went wrong!