Computer Store
store.prestwood.com
-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
-Collapse +Expand Delphi To/From
To/FromCODEGuides
-Collapse +Expand Delphi Store
PRESTWOODSTORE

Prestwood eMagazine

July Edition
Subscribe now! It's Free!
Enter your email:

   ► KBProgrammingDelphi for W...   Print This     
  From the August 2013 Issue of Prestwood eMag
 
Delphi for Win32:
Why Use Delphi To Create ISAPI DLLs?
 
Posted 13 years ago on 9/24/2007
Take Away: When it comes to creating "CGI" solutions, we have a plethora of tools from which to choose. Pearl and TCL are old standbys. ASP Classic, ASP .NET, and PHP are other viable tools. Why, then, would you want to take the trouble to use Delphi for some of these tasks?

KB100693

There are several reasons to use Delphi for your "CGI" needs.

Delphi can produce WinCGI executables, ISAPI DLLs, even Apache add-ins. It's very easy to start your project as a WinCGI exe, then, using the same code base, turn it into an ISAPI DLL for final deployment.

If you're already a seasoned Delphi developer, you get to work in a language you already know - and do it in a very productive IDE.

Delphi's "Web Broker" technology provides a lean, but powerful set of web-smart components, including a wizad to get your projects started quickly. The TPageProducer and TTableProducer objects make it a snap to render HTML responses in a manner similar to performing a mail merge in a word processor.

Another advantage is Delphi's affinity for databases. If a database has any significant presence, you can bet it's well supported by Delphi.

Then there is Delphi's poweful object orientation. With OOP, solution design and implementation can be simplified by "compartmentalizing" complex entities as objects.

Consider, too, the ability to protect your intellectual property. Suppose you've written a web-hosted application for resale. With any of the scripting solutions, every one of your proprietary algorithms is exposed to your customers. Not so with a Delphi DLL. Your source code is nowhere in sight.

Best of all, Delphi generates highly-optimized, native machine code. Scripting tools, like Perl, TCL, PHP, and even classic ASP all require run-time interpretation. Even ASP .NET requires your "compiled" code (CLR assembly) to be completed at run-time by the JIT (just in time compiler).

Granted, today's hardware is so powerful that scripted (or partially compiled) solutions often perform well enough for many needs. Still, all other factors being equal, highly optimized, native machine code will always win the performance contest.

There is one downside to using Delphi, however: It can be downright difficult to debug Delphi ISAPI DLLs. The good news is that there are some quick and easy ways to get around this - which will be the topic of a future post.

There are several reasons to use Delphi for your "CGI" needs.

Delphi can produce WinCGI executables, ISAPI DLLs, even Apache add-ins. It's very easy to start your project as a WinCGI exe, then, using the same code base, turn it into an ISAPI DLL for final deployment.

If you're already a seasoned Delphi developer, you get to work in a language you already know - and do it in a very productive IDE.

More Info

KB Post:  Debugging Tip: ISAPI DLLs and Services

Comments

0 Comments.
Share a thought or comment...
 
Write a Comment...
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P162A1
Enter key:
KB Post Contributed By Wes Peterson:

Wes Peterson is a Senior Programmer Analyst with Prestwood IT Solutions where he develops custom Windows software and custom websites using .Net and Delphi. When Wes is not coding for clients, he participates in this online community. Prior to his 10-year love-affair with Delphi, he worked with several other tools and databases. Currently he specializes in VS.Net using C# and VB.Net. To Wes, the .NET revolution is as exciting as the birth of Delphi.

Visit Profile

 KB Article #100693 Counter
7188
Since 4/2/2008


©1995-2020 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech