Summary

   

In this chapter, we've examined how to build and use DLLs, which includes static and dynamic loading. We've looked at how we can export functions, classes, and visual controls such as forms within a DLL. We looked at how a DLL can be used to share data among multiple applications through shared segmentation. Finally, we looked at how both Visual C++ and Borland C++Builder applications and DLLs can coexist and leverage off of one another.

DLLs are extremely useful for moving code from inside an application and into a more modular and reusable structure. We can also use DLLs to store resources such as strings and icons, or contain COM objects as an out-of-process server (see Chapter 17 for details on COM). Much like application development, the sky is virtually the limit as to what you can do with a DLL. You're encouraged to find ways to reuse code within a DLL or Package so that other applications you develop can benefit from the functionality. DLLs can also be used to provide updates and enhancements to your applications. With a little innovative thinking, you can also discover ways to use DLLs as a plug-in technology for your applications. To find out more about DLLs and packages, see the C++Builder online help and the Win32 Programmer's Reference for DLLs.


   
Top


C++ Builder Developers Guide
C++Builder 5 Developers Guide
ISBN: 0672319721
EAN: 2147483647
Year: 2002
Pages: 253

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net