Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

writing a dll vs. asp

Status
Not open for further replies.

Ovatvvon

Programmer
Feb 1, 2001
1,514
US
From my understanding, a dll will speed up your performance on your server. Is this correct?

If so, why wouldn't everyone just write in dll's then? or, when do you choose to write a dll vs. asp.

And finally, how does the coding differ in a dll than in asp? When processed by IIS using on an .asp site, would it still be processed like asp, or is the coding different?

Thanks in advance... -Ovatvvon :-Q
 
Check out this thread. We just finished a pretty exhaustive discussion on this very subject:

thread333-168745

As far as the coding difference goes, .dll's can take advantage of more methods that vbScript does not offer (handling exceptions for connection objects, for instance -- which vbScript cannot do).

Add that to the fact that .dll's are compiled vs. the interpreted ASP code (which is never compiled at all -- even at run time), and you can see why writing a .dll for more complex tasks is preferable.

It also makes your applications more portable... gets you closer to an Object Oriented type of approach, where the best you can do with ASP in this vein is to "fake it". Although you can fake it pretty well if you try.

If you have any more questions, post back.

:)
paul
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top