Recent Posts

Pages: [1] 2 3 ... 10
General / Re: how to load or add more than one URL path in a listbox..
« Last post by lucamar on Today at 03:06:16 am »
Sorry for the delay. With some luck, gods willing, I'll have some time tomorrow to dedicate to your problem.

Can you share the code you're using? To be able to help I need to know exactly what you're doing and how.
Free Pascal / Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Last post by valdir.marcos on Today at 02:03:54 am »
I am using FPCUPdeluxe to test Lazarus 2.0 RC 3 + fixes_2_0 and FPC 3.2 beta + fixes_3_2. Everything is 32bit.

When I install any or all of the packages lclfpreport.lpk, lazfpreportdesign.lpk, lazidefpreport.lpk from "C:\fpcupdeluxe\lazarus\components\fpreport\" and "C:\fpcupdeluxe\lazarus\components\fpreport\design\",  Lazarus gets broken during rebuild and doesn't work anymore.
Workaround complete. Lazarus is back starting.

No, my only safe place is my PC. I think i have loaded this from the sites as found on 

freetype-6 :
zlib1         :

But naming of the freetype6.dll to freetype-6.dll is needed.

Do you have a very trust-worthy source for the zlib dll ?
With trust I mean safe !
Thanks for sharing:
Databases / Re: MSSQLConnection with windows authentification
« Last post by Remy Lebeau on Today at 12:57:53 am »
Simply leave the UserName and Password properties blank.  This is stated in the TMSSQLConnection documentation:

TMSSQLConnection specific: if you don't enter a UserName and Password, the connector will try to use Trusted Authentication/SSPI (on Windows only).

SSPI is how MSSQL uses Windows authentication.
Databases / Re: Sanity Check Please on SQL Statement
« Last post by daveinhull on January 16, 2019, 11:51:14 pm »
Thanks everyone, now sorted. Turned out to be a combination of little mistakes, but the Chr(39) approach certainly stopped some confusion of double/triple '
I started reading it after a few chapters, seemed pretty solid though.

I'll pick it back up when I get some free time again
I've been playing with Plex and Pyacc, but one of the big things missing for me (In general in these topics) is how to actually implement a simple compiler (Not an interpreter).

Jack Crenshaw's Let's build a compiler may interest you then. Although it's (unfortunately) unfinished.
Other / Re: avr hardware pins acces from pascal
« Last post by diego bertotti on January 16, 2019, 11:02:57 pm »
and another aproach!

Code: Pascal  [Select]
  1. var
  2. PuertoD: bitpacked array [0..7] of boolean absolute PORTD;
  3. PinesD: bitpacked array [0..7] of boolean absolute PinD;  
  5. begin
  6.  PuertoD[5]:= true;
  7.  PuertoD[5]:= False;
  8.  If PinesD[1] then
  9.   begin
  10.   PuertoD[5]:= False;
  11.   end;
  12. end.

and assembler was....
Code: Pascal  [Select]
  1.         sbi     11,5
  2.         cbi     11,5
  3.         in      r18,9
  4.         sbrs    r18,1
  5.         rjmp    .Lj95
  6. .Lj94:
  7.         cbi     11,5
  8. .Lj95:

excellent! but for brach/ jump (if statement)
General / Re: How can I write this formula in Lazarus?
« Last post by jamie on January 16, 2019, 10:52:28 pm »
yeah but, since I work with PLC's that use X as inputs and Y as outputs it kind of flows with my
mentality ! :P
Other OS / Re: Sample Simple HOST/DYLIB for OSX
« Last post by on January 16, 2019, 10:50:21 pm »
Hi Jonas,

One thing that immediately leaps out at me is that, if NOT MSWINDOWS, then there is a link lib directive. Is this necessary, I'm assuming it is?

Code: Pascal  [Select]
  1. {$linklib tw9089b}


I initially had the output path (for the dylib) set to ./x86_64-darwin and, whilst there is a built file called tw9089a (no issues) when I try and build tw9089b I get the standard
Code: Pascal  [Select]
  1. ld: library not found for -ltw9089a
  2. An error occurred while linking
The file is definitely there.

So I changed the output folder to the source folder where it is by default, again I can confirm that the file tw9089a is definitely there, but I get these messages:
Code: Pascal  [Select]
  1. Hint: (11030) Start of reading config file /etc/fpc.cfg
  2. Hint: (11031) End of reading config file /etc/fpc.cfg
  3. Free Pascal Compiler version 3.0.4 [2017/11/26] for x86_64
  4. Copyright (c) 1993-2017 by Florian Klaempfl and others
  5. (1002) Target OS: Darwin for x86_64
  6. (3104) Compiling tw9089b.pas
  7. /Users/kevin/Dropbox/Lazarus/DYLIB Compiler Test/tw9089b.pas(13,3) Hint: (5028) Local const "libname" is not used
  8. (9001) Assembling (pipe) /Users/kevin/Dropbox/Lazarus/DYLIB Compiler Test/lib/x86_64-darwin/tw9089b.s
  9. (9015) Linking /Users/kevin/Dropbox/Lazarus/DYLIB Compiler Test/tw9089b
  10. ld: library not found for -ltw9089a
  11. An error occurred while linking
  12. tw9089b.pas(47) Error: (9013) Error while linking
  13. tw9089b.pas(47) Fatal: (10026) There were 1 errors compiling module, stopping
  14. Fatal: (1018) Compilation aborted
  • I'm using lazarus 2.0.0RC3
  • The files have a pas extension (don't think that's relevant)
  • Target OS is Darwin
  • I'm building for x86_64
  • The compiler is /usr/local/bin/ppcx64

I apologise for the newbie questions (so don't assume I'm doing things by default), but this is a sticking point, I really cannot move on until this simple code executes and by that I mean LINKS?

Do you have any suggestions of what I should try next/what I'm doing wrong?

I just read the article using Google Translate (Not a bad job for auto-translation) and I'm bookmarking and will keep checking back  :)

I've been playing with Plex and Pyacc, but one of the big things missing for me (In general in these topics) is how to actually implement a simple compiler (Not an interpreter).
Pages: [1] 2 3 ... 10