Add .Net Runtime Library for Delphi


Many years ago, in the middle of 90's, Microsoft introduced a new revolutionary programming technology called COM (Component Object Model). It is used to enable inter-process communication and dynamic object creation in a large range of programming languages.COM is a platform-independent, distributed, object-oriented system for creating binary software components that can interact. Most new windows OS features were implemented using COM. Most programming languages support COM but most of them are not COM-based.


Now Microsoft has introduced a new revolutionary technology which is more powerful than COM called .Net. New programming languages such as C#, VB.Net, Visual C++ etc were created using the .Net technology. More and more new .Net components become available on the market.


Delphi developers can access .Net libraries through COM technology which requires Library registrations and a whole lot of stuff before the inter-process communication between the Delphi type library objects and the .Net library object types can be established. The era of creating and registering a type Library for .Net Libraries in Delphi is finally over because of the new technology called .Net Runtime Library for Delphi introduced by CrystalNet Technologies LTD which provides a set of low-level routines used by Delphi compiler to invoke the behaviors of the Common Language Runtime.



The .Net Runtime Library for Delphi is the best library to work with the .Net framework from Delphi. It is designed to provide a way to interact with applications written in anyone of the .Net languages: C#, Visual Basic.Net, Delphi.Net, JScript.Net and others. Programmers can produce software by combining pascal source codes with .Net framework and other .Net libraries.





The .Net Runtime Library for Delphi can be used to:





host the .net common language runtime (CLR) in delphi
load assemblies from .Net dll or exe file without registering the Library as COM
load assemblies from Global Assembly Cache (GAC)
access .net assembly types and members of the types
create and use .net objects from the loaded assemblies that may or may not be COM visible using parameterized or non-parameterized constructors.
call static and non-static members of the .net types. The members include fields, properties, methods and events
handle and raise .net exception and also get information about the .net exception type.
access, handle and invoke .net events and delegates
host .net controls in Delphi VCL
import .net dll, exe or Web Service Definition Languag (WSDL) and generates delphi classes from the loaded assemblies.[.Net Assemblies/WSDL Import Utility]
..and many more.



There are 2 main libraries that constitutes the .Net Runtime Library for Delphi, these are:




1. Host Class Library
This is also called Delphi Host Class Library or DHCL. This Library contains Delphi classes and interfaces for starting and hosting the Common Language Runtime which manages memory, thread execution, code execution, code safety verification, compilation, and other system services.



2. Framework Class Library
The Delphi Framework Class Library (DFCL) is a Delphi interface representation of the .NET Framework class library which is a collection of reusable types that tightly integrate with the Delphi Host Class Library.






.Net Assembly/WSDL Importer
A tool which is part of the .Net Runtime Library for Delphi is used to import .net assemblies, WSDL or Web Service XML schema and generates Delphi classes from the types of the imported assemblies.
Related Discussions
  • HOW TO KILL ANYOTHER PROGRAMS WITH DELPHI? (2001-01-02 19:04:42)
    Find the handle of the window using FindWindow or EnumWindows and use PostMessage(ProgramHandle, WM_CLOSE, 0, 0); I have not tried it, but it...
  • HOW TO GREP CHARACTERS IN DELPHI 3 (2001-01-03 03:29:32)
    Var Grep : String; Begin Grep := Copy('2000-46',6,2); End; The first parameter is a string or a dynamic array, the second is the index of...
  • HOW CAN I DEBUG DLL (2001-01-03 02:48:24)
    Do you mean how to find internal errors while writing a DLL file or how to get the exact error while calling a DLL Function ? /Filip
  • USING DLLS (2001-01-04 01:47:50)
    Hi again Goober ... :o) Let's take NETAPI32.DLL as an example. This DLL is created by Microsoft and the explanation of its use is described in...
  • DOT ON SCREEN (2001-01-03 05:42:55)
    Delphi does not support a Pixel function with a HDC, you have to use the Windows-API-function COLORREF SetPixel( HDC hdc, // handle...
  • HOW TO RUN DATABASE APPLICATION ON THE INTERNET (2017-06-09 10:54:22)
    Well, in design I think there is already an issue. Backend is more then just a database with which you connect. There should be a complete layer...
  • HELP WITH CHDIR !!!! TURBO PASCAL VS DELPHI (2001-01-03 08:48:49)
    This is because the ChDir Procedure, the SetCurrentDir and SetCurrentDirectory Functions are changing the directory in the active process. Try...
  • FRIENDS IN DELPHI ?? (OR OTHER ACCESS WORKAROUNDS) (2001-01-04 11:08:37)
    One of the quirks of Delphi is that classes in the same unit can access protected and private methods and variables. Borland does this a lot in...
  • SENDING ICQ MSGS FROM DELPHI (2001-01-03 16:54:03)
    I tried the ICQ Api, but never used it. I've added a simple ICQPager component to delphipages (Winsock/TCPIP).. it might help... Q
  • RUNNING A DATABASE APPLICATION ON ANOTHER COMPUTER (2001-01-07 07:36:33)
    In the BDE on the other PC (the one without the database), you must add an alias to point to the location of the database in the format of:...
Latest News
Submit News Form Past News
Latest Forum Entries