* * *

Recent Posts

Pages: [1] 2 3 ... 10
QT / Re: QT On Windows Error
« Last post by kwer on Today at 12:46:56 pm »
This has become a twice a year event for this forums. So here are the win32 libraries for qt needed to run application compiled for QT on windows. They are based on QT4.8.3  and they where auto created during installation I have no idea how to build them for 64bit nor the will to learn.

I'll keep them there for now until lazarus jumps to qt5 or events render them unneeded.

General / Re: Obfuscator for FreePascal / Lazarus
« Last post by GPcH on Today at 12:01:17 pm »
I find it useless.  Just compiling with optimizations (-O2 and up) and stripping all debug and profile information, and apply smartlinking, will make it almost un-decompilable.  Not only FPC, but also Delphi.  I remember using Delphi decompilers for Delphi 6 and they were unable to decompile any actual code except resources (and you don't need a decompiler to do that).

Can you upload any FPC exe file, what use forms, classes and GUI part (not pure API or KOL/MCK) and protected against decompilation using compiler options? I will provide screenshots how it can be decompiled using our DE Decompiler. Also you can see this private video: https://www.youtube.com/watch?v=uWGTKOirvJo&t=204s
This is just our internal tool, not a commercial product and can't be downloaded.
Beginners / Re: Procedure without an Object
« Last post by jb007 on Today at 11:36:18 am »
Gonna aproach my Arduino from a different point ( "watching" from pc-Lazarus ) when it comes to RS232 communication! Maybe this will give me more clearness and understanding.

A bit in the same way as I'm allready  programing my Arduino itself and from there on I "communicate" with ADC-UNIT, PWM-UNIT etc.

I mean: I send COMMAND/UNITnumber/DATA to ADC-UNIT/PWM-UNIT  and they "proces" the command/unit/data on their own! later I can, by "command etc" read the registers/values etc etc.

Gotta to this in the same way at pc-Lazarus-side from/to Arduino-mikropAscal.
A command from pc-Lazarus can be a write(e.g: move a stepper OR read instructrion ( e.g: read ADC).

And give my Arduino some registers wich can be acces by pc-Lazarus!

Have to do this before contueing the "actual robot code", it will make thing more clear!

General / Re: Which button is clicked?
« Last post by molly on Today at 11:30:27 am »
In additions to wp's answer, also note that every component can have a (unique) name by setting the name property for each created component.

Additionally you can use your own array that keeps track of each individual created component and use that array for reference.

General / Re: Obfuscator for FreePascal / Lazarus
« Last post by marcov on Today at 11:22:28 am »
If you bothered to click the URL that GPCH posted, you'll see that it obfuscates type names in that reappear in streamed component RTTI, which can be used as starting point in reverse engineering attempts.

But it is indeed a lot less needed than with e.g. bytecode languages. Most users won't either need it, and some others will go to different techniques (like we do with whole EXE encryption + hw dongle)
General / Re: Which button is clicked?
« Last post by wp on Today at 11:10:57 am »
Every event handler has a parameter "Sender" which points to the object from which the event originates. The parameter is very generic, and you will have to cast it to TButton to get access to its properties:

Code: Pascal  [Select]
  1. procedure TForm1.BtnSourceClick(Sender: TObject);
  2. begin
  3.   if Sender is TButton then begin
  4.     TButton(Sender).Caption := Listbox1.Items[Listbox1.ItemIndex];
  5. end;
General / Which button is clicked?
« Last post by Haeleng on Today at 11:01:59 am »

I'm new to Lasarus and object programming.
In code I created some buttons see code below.
When I press on lets say the second button the procedure BtnSourceClick is called.
In BtnSource a listbox becomes visible, which is the same for all buttons.
In the listbox I click on some itemtekst.
This text should become the captiontext of the button that has been pressed.
How do I determine that for example button 2 is pressed?
    for i:=0 to BoxCount-1 do
      ButtonArr.Left:=(i mod 5)*(PanelWidth+PtPOffsetX)+(Xoffset+ButtonOffsetX);
      ButtonArr.Top:=(i div 5)*(PanelHeight+PtPOffsetY)+(Yoffset+ButtonOffsetY);
      ButtonArr.Caption := 'I/O Device';
      ButtonArr.OnClick := @BtnSourceClick;

Beginners / Re: Lazarus control Arduino Nano with Enc28J60
« Last post by avra on Today at 10:40:38 am »
Nice topic!

Very understandable and clear!
You are so kind, so I felt motivated and created an initial Arduino wiki page:  ;)

Everyone feel free to expand and improve it.  ::)
General / Re: Tab based Form error segmentation.
« Last post by BSaidus on Today at 10:02:27 am »
You're welcome. There is small memory leak in my example. If tb/fr is assigned, you must free them when you close form1.
Oh yes !! I've allready did that !!
Windows / Re: FPC error (Windows 10 64bitZ)
« Last post by Thaddy on Today at 09:59:07 am »
What is your OS language? What is your terminal doing? (Type CHCP on the command prompt)

This is my windows 10/64 result:
Pages: [1] 2 3 ... 10


Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus