Re: [Lazarus] A simple event problem in console program
A TNotifyEvent must be a procedure that is a method of a class. You have created and tried to use a plain procedure instead. On Tue, 15 Dec 2015 17:02:48 -0500 Aradeonaswrote ... and give this error: project1.lpr(30,13) Error: Incompatible types: got "" expected " " -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] FPC Pestering Peacock (3.0.0) release
That sounds good to me! Thanks for everything on GetLazarus.org! On Tue, 01 Dec 2015 16:12:29 -0500 Anthony Walter <sys...@gmail.com>wrote DougC: I rebuilt the Windows setup program it now says "Free Pascal 3.0 with Lazarus" and in small text below "December 2015 Release". I hope that clears up any confusion. In the future I'll keep the build date (month and year) in the description. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] FPC Pestering Peacock (3.0.0) release
Download the windows installer and run it. The very first window says "Welcome to the Free Pascal 3.0 with Lazarus Setup Wizard" then "This will install Free Pascal 3.0 with Lazarus version 3.0 on your computer." This is confusing! On Tue, 01 Dec 2015 10:24:37 -0500 Anthony Walterwrote The setup name is now "Free Pascal 3.0 with Lazarus" as defined on Windows at least by the setup script. https://github.com/sysrpl/Codebot.Setup/blob/master/windows/setup.iss Sometimes Inno Setup mangled the name (which you can edit during install) based on some previous install information it keeps around. Regardless of the name, I now use the Free Pascal fixes 3.0 branch and Lazarus trunk branch when building setups for all platforms. All setups (Windows, Linux, Mac) were updated this past weekend and have gone through several rounds of testing to ensure everything works as intended. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] FPC Pestering Peacock (3.0.0) release
Why does this installer say it is installing FPC 3.0 and Lazarus 3.0? Has Lazarus changed their version numbering? At best I would expect a Lazarus 1.5 at this point. On Wed, 25 Nov 2015 19:15:14 -0500 Anthony Walterwrote wkitty, I just updated the installers at: http://www.getlazarus.org/setup/ It is built from FPC 3.0 now. It installs to your home folder without needing any special rights to install. Linux/Mac users can change the install folder by changing the $BASE variable at the top of the script. Windows users can just pick a folder in the installer program. Lazarus and FPC configurations are read from their own directories and wont interfere with other existing installations. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Encryption compatible with .net
So why is vector in your code? Including irrelevant parts just makes it harder for others to help you. Rewrite your Pascal code to use the same variables as the VB code! On Sun, 15 Nov 2015 06:56:09 -0500 Gabriele Cappellettowrote But the cipther constructor does not refer to vector, but the variable IV. Vector is not used in this example -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Encryption compatible with .net
After quick look I noticed that var Vector : array of Byte; SetLength(Vector, 8); Vector[0] := 1; Vector[1] := 2; Vector[2] := 3; Vector[3] := 4; Vector[4] := 5; Vector[5] := 6; Vector[6] := 7; Vector[7] := 8; does not match Dim vector As String = "12345678" Should be something like Vector[0] := '1'; Vector[1] := '2'; Vector[2] := '3'; Vector[3] := '4'; Vector[4] := '5'; Vector[5] := '6'; Vector[6] := '7'; Vector[7] := '8'; I didn't look at the rest. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Working on big units
I think you have taken the advice you read somewhere too seriously. You have taken it to an extreme that invalidates it. Having a small number of units is not in any way disadvantageous in terms of efficiency from the system's viewpoint. Remember that the unit structure was invented to solve the very problems you are experiencing! You do not have to split your unit based on the classes it now contains. You can use other rationale for the split. I have a set of units named DateSupport LogSupport FileSupport CodeListSupport SortSupport Makes it easy to see where the items I want to find are. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Working on big units
The best way to deal with big units is to avoid them completely. Can you explain why you are using such a big unit if it is causing you these problems? On Wed, 21 Oct 2015 15:45:07 -0400 Aradeonaswrote I Just work on one of my units with about 10,000 line of code that have 7 class and it makes me crazy moving in it and adding procedure or editing and sometimes I get lost that where am I. Just want to ask you how you work with big units? how you move,browse and edit? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Google Docs for help documentation
On Sun, 11 Oct 2015 15:28:18 -0400 Richard Macewrote Hi All, I was wondering what people thought about using a Google Doc as a help file? It looks like you can have a contents, use anchors and obviously have pictures. Any thoughts? Are you talking about a help file for your app or for Lazarus, itself? If for Lazarus, what's the problem you are solving by suggesting this? Is the existing wiki so bad? It is a really bad idea to tie your documentation to a single vendor. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus applications as webpaged
Michael- Thanks for doing this work. I am also very interested in it! On Sun, 30 Aug 2015 16:21:18 -0400 Michael Van Canneytwrote I have almost finishing writing a unit - which I will commit to FPC very soon - that takes a *sample* json file and creates an object from it. The object does not depend on anything, and contains code to stream it from/to json in the format that was used to create it. It should make consuming/producing REST services (using JSON, obviously) very easy. I will integrate it in the jsonviewer application distributed with Lazarus. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Recommended install methods
Graeme just posted this to the fpc list as a recommended way to install fpc: Remove all copies of FPC, no matter the versions. Remove all copies of the fpc.cfg too. Look in /usr/local/etc and $HOME. Then download the official FPC release install: http://sourceforge.net/projects/freepascal/files/FreeBSD/2.6.4/ Untar the file to a temp directory and run the install script. Install to your own home directory location - that way you don't need root privileges. For example: /home/freds/devel/fpc-2.6.4/ Using version numbers in the install location also means that you can install other versions of FPC concurrently. You can then tweak the ~/.fpc.cfg to use $fpcversion macros instead of hard-coded version numbers. That way all FPC install share the same ~/.fpc.cfg file. If you need the FPC source code, download that from SF.net too, and unpack that in /home/freds/devel/fpc-2.6.4/src/ I then amend my PATH environment variable to include the stable FPC "bin" directory, so I can use FPC from anywhere in my system, simply by typing 'fpc'. Other FPC versions can be used by specifying the full path to the fpc binary. I've used this setup for years - first with Linux, then the last 3 years with FreeBSD. This has always worked without fail. I NEVER use any package management version of FPC, and neither to I use FreeBSD ports to install FPC. The official FPC release installer is all you need. Regards, - Graeme - I like this approach. Is there a similar (not any more complex) recommended way to handle Lazarus installs that allows for multiple versions to be simultaneously installed and used interchangeably? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus