Holger's Thoughts on Delphi

Wednesday, November 23, 2005

Indy: Can I use Indy Components in ASP.NET applications?

Let me give you the answer by asking you: Why not? As I said in one of my previous posts, Indy assemblies do not differ from any other .NET assembly. ASP.NET can "use" any class of any .NET assembly. However, I think this 'question' arises because of the fact that two things may happen:
  1. Your internet provider may not allow you to deploy custom assemblies in addition to your application DLL

  2. You may not have propery security rights to allow the operation that is included in the assembly to be executed


In the second case you are busted. There is no other way, but to apply for additional access rights. The first case, however, can be solved if you want to use the Indy assemblies. The Delphi compiler can link the Indy "libraries" into your appliciation DLL. Yes, this is really possible due to the fact that Indy is written in Delphi and the Delphi compiler offers that feature. Just right-click on all the Indy assemblies in the Project Manager and check the "Link Unit" menu item and you'll end up with one application assembly.

That's a pretty neat feature of the compiler, isn't it?

1 Comments:

  • I have an old vcl project that was developed under delphi 5. I need to port it to the new delphi 2006. I know with delphi 2005 you could install is with vcl50 or indy. Should I convert everything to indy instead of vcl50? Is there any problems with using indy? This is a Win32 application. Do you have any pointers on coverting from vcl50 to Indy? thanks

    By Blogger jtaylor, at 7:43 PM  

Post a Comment

Links to this post:

Create a Link

<< Home