Recent

Author Topic: Why is the TDelphiReader class from the "LResources" unit not callable?  (Read 1641 times)

Akira1364

  • Hero Member
  • *****
  • Posts: 561
I have included the unit in my "uses" section. However, Lazarus simply does not recognize that TDelphiReader exists in LResources. The version of TDelphiReader in the "streamex" unit DOES work fine, but it missing 90% of the functions I need, rendering it useless. Why are there even two implementations of TDelphiReader in the first place? And why is the better of the two implementations not usable?

Thank you for any help you can provide!

balazsszekely

  • Guest
Re: Why is the TDelphiReader class from the "LResources" unit not callable?
« Reply #1 on: September 02, 2015, 06:53:54 am »
Quote
I have included the unit in my "uses" section. However, Lazarus simply does not recognize that TDelphiReader exists in LResources.
TDelphiReader is declared in the implementation section of unit LResources.pp, you cannot use it outside that unit.

Quote
And why is the better of the two implementations not usable?
No one is stopping you from copying that particular class to another unit(leave the copyright info intact).  Actually I did it for you(see attachment). Copy the unit to your project folder, add to the uses clauses.

 

TinyPortal © 2005-2018