Building Vclnet Applications

VCL.NET gives you the capability to provide your Delphi VCL applications and components to Microsoft . NET Framework users. VCL.NET is an extended set of the VCL components that provide the means to quickly and easily build advanced applications in Delphi. Now, with Delphi 8 for .NET you get all of the benefits of the .NET Framework along with the ease-of-use and powerful component-driven application development you've come to expect from Delphi.

Delphi 8 for .NET provides distinct application types for your use: you can create VCL.NET form applications that run on the .NET Framework, but which use VCL.NET components and controls; you can create .NET Windows Forms applications that use the underlying .NET Framework and .NET controls while offering Delphi 8 for .NET code behind; you can create powerful ASP.NET applications that use the underlying .NET Framework, ASP.NET controls, and also offer Delphi 8 for .NET code behind. The following topics provide more information on how to take advantage of the new VCL.NET provisions in Delphi 8 for .NET.

  1. NET Overview
  2. NET is the programming framework for building Delphi 8 for .NET applications using VCL components. Delphi 8 for .NET and VCL.NET are intended to help users leverage the power of Delphi when writing new applications, as well as for migrating existing Win32 applications to the .NET Framework.

The aim with these technologies is to allow a Delphi developer to move to .NET, taking their Delphi skills and much of their current Delphi source code with them. Delphi 8 for .NET supports Microsoft .NET Framework development with the Delphi language and both Visual Component Library (VCL) for .NET controls and Windows Forms controls. Delphi 8 for .NET ASP.NET also supports WebForms and SOAP/ XML Web Services application development.

VCL.NET is a large subset of the most common classes in VCL for Win32. Because the .NET Framework was architected to accommodate any .NET-compliant language, in many cases Delphi source code that operates on Win32 VCL classes and functions recompiles with minimal changes on .NET. In some cases, the code recompiles with no changes at all. VCL.NET is a large subset of VCL, therefore it supports many of the existing VCL classes. However, source code that calls directly to the Win32 API requires source code changes. Also, dependent third-party Win32 VCL controls need to be available in .NET versions as well for compatibility.

This section introduces:

  • VCL.NET architecture.
  • VCL.NET components.
  • Borland.VCL namespace.
  • VCL.NET application deployment.

What is VCL?

VCL is an acronym for the Visual Component Library, a set of visual components for building Windows applications in the Delphi language. VCL.NET is the same library of components, updated for use in the .NET Framework. As you can see in the preceding illustration, VCL.NET and the .NET Framework coexist within Delphi 8 for .NET. Both frameworks (VCL.NET and .NET) provide components and functionality that allow you to build .NET applications:

  • VCL.NET provides the means to create VCL Forms applications, which are Delphi forms that are . NET-enabled, and use VCL.NET components.
  • VCL.NET provides VCL non-visual components which have been .NET-enabled to access databases and also allows you to access databases by way of ADO.NET and BDP.NET providers.
  • NET provides the means to build .NET Windows Forms, Web Forms, and Console applications, using .NET components, with Delphi code behind.
  • NET provides data access components that allow you to access databases by way of ADO.NET.

You can build VCL Forms applications using VCL.NET components or Windows Forms applications using .NET components. You can also build ASP.NET Web Forms applications using either VCL.NET components or .NET components.

Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment