Link to home
Start Free TrialLog in
Avatar of boazm
boazm

asked on

Components are not created when running in DLL or COM

I use TXmlDocument and TIdFTP components in a small program. If I compile the program as Application, it works fine, whether I declare objects of these types under VAR and perform Create(Application.Owner) or I create these objects by putting components on a Form or a DataModule. If I compile the same code under "library" directive, trying to build either regular DLL or COM, the objects are not created by any of these means, so when trying to assign a value to a property of any of them I recieve "Unaccessible value" error message.
What am I doing wrong?

ASKER CERTIFIED SOLUTION
Avatar of delphized
delphized

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial