.NET Remoting and Delphi - Adding References
(Page 8 of 11 )
In order for applications to make use of Delphi packages, the package itself and the applications using it must include a reference to the Borland.Delphi assembly.
This is automatically added for you by Delphi, but in case you removed the reference, simply go inside the Project Manager, right-click on the node Requires under the project BankPackage.dll and select Add Reference.
When the Add Reference dialog box appears, select the Borland.Delphi assembly, as shown in Figure 29.9.

Figure 29.9
Adding the Borland.Delphi reference.
Click OK, compile the package, and select the Server project.
The server application will need references to the Borland.Delphi assembly, the BankPackage.dll itself, and System.Runtime.Remoting.
Reopen the Add Reference dialog box and select the assemblies shown in Figure 29.10. You will have to browse to the directory containing BankPackage.dll to select it. Once done, you will see it in the Project References page of this dialog box. The .NET Assemblies page only contains GAC'ed assemblies.

Figure 29.10
Adding the Assembly reference to the BankServer project.
Once you're done adding these references, your project group should look like that shown in Figure 29.11.

Figure 29.11
The BankExample project group.
This chapter is from Delphi for .NET Developer's Guide, by Xavier Pacheco (Sams, 2004, ISBN: 0-672-32443-1). Check it out at your favorite bookstore today.
Buy this book now. |
Next: BankPackage.dll: Contract Between Clients and Servers >>
More .NET Articles
More By Xavier Pacheco