>I'm currently using Delphi 7, not a pro or a noob, and i just wanna >create application using DLLs. >I wanna know, can I declare a type in the library so I can reuse them >on lot of my programs..? >I try every single thing, and all I can do is just putting some >general function on that library.
The main problem with DLL's is that they can't export classes. You can declare a class inside the DLL, but to use it outside you have to: 1. Create all instances of that clas inside the DLL and provide exported procedures for instance creation and destruction; 2. Provide exported functions and procedures for every public mehtod of this class; 3. In the case of public properties provide exported getter functions and setter procedures for any property Use Delphi packages and you'll get all you need. Delphi packages (BPL's) know how to export classes. With the help of packages you can even design plugins for your applications. Delphi itself consists of packages. [Non-text portions of this message have been removed]

