Results 1 to 2 of 2

Thread: Gebruik LCLIntf in Lazarus

  1. #1
    Senior Member
    Join Date
    Jul 2007
    Location
    Rekem-Lanaken Belgie
    Posts
    401

    Question Gebruik LCLIntf in Lazarus

    1.
    Misschien is het een goed idee om een Lazarus hoek in te richten?
    2.
    Voor de conversie van Delphi naar Lazarus zegt de dokumentatie die ik heb gezien dat je de Windows unit moet vervangen door LCLIntf; dat blijkt inderdaad te werken. Maar het vreemde is dat als ik een Windows API als TTimeZoneInformation wil gebruiken ik OOK de unit Windows in de uses clause moet opnemen; en het werkt uitsluitend als die Windows unit is opgenomen.
    Kan iemand mij vertellen wat hier aan de hand is, ik verkeerde in de overtuiging dat LCLIntf een volledige vervanging is van Windows.pas; dus ik ben een beetje de draad kwijt

  2. #2
    Uit de Lazarus Wiki:
    As the LCL is not windows specific, the code that is in the Delphi Windows unit for directly accessing the Win32 API is abstracted into seperate interfaces, which can be accessed from the LCLIntf unit. Keep in mind, that Lazarus does not emulate win32, so many functions are missing and some do not work as their win32 counterparts. These functions only exist for Delphi compatibility and should only be used for quick & dirty porting. LCL also breaks out many of the types, so often LCLType, and sometimes VCLGlobals are required. LCLProc also contains a few functions which can be useful for lower level handling such as "FreeThenNil" as is in Delphi 5 and higher, "DeleteAmpersands" to remove additional ampersands from a string for controls(& vs && etc). The Interfaces unit needs to be included in the .lpr file to initialize the appropriate widgetset.
    Niet alle WinApi functies zijn dus vertaald in de LCL.
    Heb je die ook nodig, dan heb je de windows unit nodig.

    Bart

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •