Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-24 Thread Michael Schnell
On 09/24/2015 02:22 PM, Bo Berglund wrote: My first test was aginst our CVS server on port 2401 Just for testing if a socket can receive data you can use any server in the Internet port 80 :-) -Michael -- ___ Lazarus mailing list

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-24 Thread Michael Schnell
On 09/24/2015 02:55 PM, Michael Schnell wrote: any server in the Internet port 80 :-) or even better set up the Linux that you will need anyway. Linux always comes with telnet to a command line installed. You just need to activate it. -Michael

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-23 Thread Michael Schnell
On 09/23/2015 04:21 PM, Bo Berglund wrote: I have used the AsyncPro com port also and I noted that there is a TCP/IP version of the com port as well (ApdWinsockPort) such that using this in Delphi would make it possible to just switch from one to the other by setting a property. It would be

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-23 Thread Michael Schnell
On 09/23/2015 07:37 AM, Martin Schreiber wrote: The MSEgui socket components (and the pipe reader and RS232 components too BTW) implement the model Michael describes. For Delphi we (company) use AsyncPro (as well for RS232 as for TCP/IP) (Initially provided commercially by TurboPower, but

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-22 Thread Michael Schnell
On 09/22/2015 11:16 AM, Marc Weustink wrote: The Lazarus services I run here at work have zero GUI dependency. Of course you can do programs that don't have a GUI dependency (e.g. a Service/Daemon) using Lazarus. The question discussed is whether it is possible to use the "Event

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-22 Thread Michael Schnell
On 09/21/2015 06:08 PM, Martin Schreiber wrote: pport. Please compile MSEide with -dmse_with_ifirem in order to activate them. It also has "tnoguiapplication" in order to build daemon applications with an event loop where all nonvisual components including ttimer can be used. That is really

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-22 Thread Michael Schnell
On 09/21/2015 04:42 PM, Bo Berglund wrote: Unfortunately since the existing code is built on non-blocking serial communications and events to handle the data reception ... You can convert a blocking socket (or serial port receive) to be a non-blocking Event-triggering (i.e. Delphi-Paradigm

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-22 Thread Michael Schnell
On 09/21/2015 05:16 PM, Bo Berglund wrote: I don't really know how Telnet could tie in here. "Telnet" is just a synonym for "transfer Bytes via TCP/IP without any additional higher protocol". -Michael -- ___ Lazarus mailing list

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-22 Thread Michael Schnell
On 09/21/2015 07:05 PM, Bo Berglund wrote: Fine, then I just need to make it visible inside Lazarus... I suppose you mean "accessible". Is it not enough to include the appropriate unit in the "uses" clause ? If not, I suppose you just need to add the file to the search path. -Michael --

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-22 Thread Michael Schnell
On 09/22/2015 11:33 AM, Michael Van Canneyt wrote: The answer is: Yes, it is. I never saw a Linux project without GUI binding that use TTimer. (Other than my own TTimer implementation, done in a compatible way.) -Michael -- ___ Lazarus mailing

Re: [Lazarus] *SPAM* Re: Cross-compiling for Raspberry Pi2

2015-09-22 Thread Michael Schnell
On 09/22/2015 11:48 AM, Graeme Geldenhuys wrote: Michael said it is possible, and I agree. Of course I do know. I did it myself (doing my version of TTimer and some more EventQueue enabled functions) Martin Schreiber told you many times in the past MSEgui's TTimer can be used in non-GUI

Re: [Lazarus] *SPAM* Re: Cross-compiling for Raspberry Pi2

2015-09-22 Thread Michael Schnell
On 09/22/2015 11:43 AM, Graeme Geldenhuys wrote: Now you are approaching “dangerous” territory. :-) Right, but RAD does not require Event Programming, nor makes Event Programming a project "RAD" ! OTHO you can of course state that preferring Event Programming over fully user managed code is

Re: [Lazarus] *SPAM* Re: Cross-compiling for Raspberry Pi2

2015-09-22 Thread Michael Schnell
On 09/22/2015 12:32 PM, Michael Schnell wrote: RAD does not require Event Programming, nor makes Event Programming a project "RAD To me "RAD" more means stuff like doing the "business logic" code directly in the unit that is used for the GUI handling. (Usi

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-21 Thread Michael Schnell
Bo later said: "As described my Windows application is a service" I am rather positive that a Delphi "Service Application" can do TTimer etc. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-21 Thread Michael Schnell
On 09/18/2015 12:06 PM, Marco van de Voort wrote: Could you please post your Delphi test for that? Thanks. You are correct that this does not work in the way I assumed. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-21 Thread Michael Schnell
On 09/18/2015 06:19 PM, Bo Berglund wrote: Or is there a better way on Linux? A typical Linux way in fact is doing a cron job. A common Unix paradigm is to do any functionality in a small dedicated "run through" executable and chain those via pipes and/or call them via system functionality

Re: [Lazarus] *SPAM* Re: Cross-compiling for Raspberry Pi2

2015-09-21 Thread Michael Schnell
On 09/21/2015 02:56 PM, Sven Barth wrote: Just for clarification: Synchronize() is not only for GUI Same is true for TThread.Queue and Application.QueueAsyncCall, as well. All three (from the user's point of view) do similar stuff: schedule an event that is executed in the main thread

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-21 Thread Michael Schnell
On 09/21/2015 01:26 PM, Graeme Geldenhuys wrote: Wow, a Service Application in Delphi (unlike under FPC - at least for *nix) seems to be a full-on GUI application, just without a UI. ... because this is easy to do in Windows, but not that easy in Linux ;-) The Lazarus team did a great job but

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-21 Thread Michael Schnell
On 09/21/2015 12:48 PM, Graeme Geldenhuys wrote: No it doesn't... Sorry if I am wrong here. I do know that colleagues of mine do Services in Delphi by doing normal GUI applications that definitively do use TTimer, and in the end just do a small modification to have them run as Services. I

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-21 Thread Michael Schnell
On 09/21/2015 01:50 PM, Graeme Geldenhuys wrote: Just to be clear, using threads in this case didn't require Synchronize() either - because Synchronize() is purely there for GUI apps, which this wasn't. Of course it is *possible* (it even is _possible_ to code a complete application with a

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-21 Thread Michael Schnell
On 09/21/2015 04:07 PM, Michael Van Canneyt wrote: So you are totally wrong in your argument. This argument had been pointing against myself, as it invalidates my effort to do an ActiveNoGui WidgetType I had been requesting at the time I investigated about porting a large embedded Delphi

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-21 Thread Michael Schnell
On 09/21/2015 04:42 PM, Bo Berglund wrote: I take your comment as meaning there are other platforms where FPC also runs, right? Yep. You can always switch to another ARM/Linux board with not much porting effort. The intrument has already been modified by replacing the serial port by an

Re: [Lazarus] Equivalent of a Windows DLL on RPi?

2015-09-21 Thread Michael Schnell
On 09/21/2015 04:48 PM, Bo Berglund wrote: So I thought that maybe I could do the same here and have something that a main program created natively in Python for instance could use. Of course you _can_ do DLLs / sos for inter-language linking. But then they need a "standard" "flat" interface

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-21 Thread Michael Schnell
On 09/21/2015 12:37 PM, Michael Van Canneyt wrote: That is because (at least up till Delphi XE) a Delphi service application runs the *GUI* processmessages loop (it uses unit forms for this). Maybe from the POV of the application but... With Win XP a Service could optionally show a GUI

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-21 Thread Michael Schnell
On 09/21/2015 02:21 PM, Graeme Geldenhuys wrote: I don't know what Lazarus's TTimer uses in the back-end I do. But this is completely irrelevant regarding what is desirable to offer to the users. My ActiveNoGui draft does not use any GUI hook and it does work - according to first simple

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-21 Thread Michael Schnell
On 09/18/2015 06:08 PM, Michael Van Canneyt wrote: Quite cheeky, posting this on a Lazarus list :) I never installed MSE IDE, as for porting to Linux an large Delphi project with several Desktop applications and multiple Delphi-trained Developers (I intended to trigger that for a long time)

Re: [Lazarus] Equivalent of a Windows DLL on RPi?

2015-09-21 Thread Michael Schnell
On 09/20/2015 07:02 AM, Bo Berglund wrote: I have a DLL written in Delphi7 (or 2007), which implements a whole bunch of basic functions ... While if course in Linux a "dynamic link" concept like DLL does exist and is widely used ("Shared Objects" ".so - files") why would you want to use it

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-21 Thread Michael Schnell
On 09/18/2015 03:44 PM, Bo Berglund wrote: Now we need to shrink and ruggedize the system ... IMHO a Pi is nit suitable to "ruggedize" a system. The Pi is made for education purpose not for embedded use. It's stability, EDS immunity, and temperature range is not suitable for this. If there

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-21 Thread Michael Schnell
On 09/18/2015 04:08 PM, Martin Schreiber wrote: 3. Cross compile and cross debug the Linux application to RaspberryPi on the Linux X86 PC. I did try rather hard but getting cross compiling running with Lazarus was not really amusing and I did not at all succeed in getting cross (aka remote)

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Michael Schnell
On 09/18/2015 07:00 AM, Martin Schreiber wrote: On Linux X86 you could use MSEide and the FPC cross compiling environment from here: http://mseide-msegui.sourceforge.net/pics/crossarm.png http://sourceforge.net/projects/mseide-msegui/files/fpcrossarm/ Maybe MSE is more suitable in this case,

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Michael Schnell
On 09/18/2015 11:28 AM, Michael Van Canneyt wrote: The way your post was constructed, you made it sound as if lazarus fails to offer what Delphi offers. Sorry for being unclear !! (This obviously is just an issue of the word "Console Application".) The contrary is true. Lazarus (at least

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Michael Schnell
On 09/18/2015 01:28 AM, Bo Berglund wrote: I have a need to port a Delphi console program written for Windows to be used on Raspberry Pi2. What are the steps needed to port to Pi2? I would use a Linux desktop to do the port to Linux in the most comfortable way, before considering the port

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Michael Schnell
On 09/18/2015 10:42 AM, Michael Van Canneyt wrote: To the best of my knowledge, Delphi itself does not offer an event queue either in console programs. In fact I doubt that the OP really intends to do a pure "console program" that is called by e.g. bash and runs through without waiting for

Re: [Lazarus] IDE - Bookmarks overview window?

2015-09-09 Thread Michael Schnell
On 09/09/2015 09:54 AM, Mattias Gaertner wrote: Have you tried the todolist package? It seems to be called "todolistlaz" It's not listed here: http://wiki.freepascal.org/Category:Lazarus_IDE_plugins -Michael -- ___ Lazarus mailing list

Re: [Lazarus] IDE - Bookmarks overview window?

2015-09-09 Thread Michael Schnell
On 09/09/2015 09:54 AM, Mattias Gaertner wrote: Have you tried the todolist package? There is an IDE package "lazsvnpkg". Great to find out that these packages already exist. I'll do a search to find out what IDE packages might be useful... Thanks, -Michael --

Re: [Lazarus] IDE - Bookmarks overview window?

2015-09-09 Thread Michael Schnell
On 09/08/2015 05:53 PM, Graeme Geldenhuys wrote: Hi, I'm using Lazarus 1.5 r48959 FPC 2.6.4 x86_64-linux-gtk 2. Does Lazarus IDE have a window (something similar to TODO List window) that shows all set bookmarks (source editor bookmarks). Slightly related: Eclipse supports TODO in a comment

Re: [Lazarus] IDE - Bookmarks overview window?

2015-09-09 Thread Michael Schnell
On 09/09/2015 11:36 AM, Bart wrote: Then please add it there. I did not find a description in the wiki. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Lazarus applications as webpaged

2015-08-31 Thread Michael Schnell
On 08/31/2015 02:22 PM, Michael Schnell wrote: In addition to Larries suggestion Sorry, of course I meant Michael vC's suggestions. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org

Re: [Lazarus] Lazarus applications as webpaged

2015-08-31 Thread Michael Schnell
On 08/30/2015 04:04 PM, Larry Dalton wrote: I have a very large application with at least 20 forms. What would be the first step in rewriting it as a web app? In addition to Larries suggestion you (if necessary) should decide which method to use to do "remote events", i.e. having your CGI

Re: [Lazarus] Lazarus applications as webpaged

2015-08-31 Thread Michael Schnell
On 08/30/2015 10:21 PM, Michael Van Canneyt wrote: I have almost finishing writing a unit ... GREAT !! -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] *SPAM* Re: *SPAM* Re: Lazarus for mobile development?

2015-08-21 Thread Michael Schnell
On 08/21/2015 11:37 AM, Sven Barth wrote: Windows 10 Mobile you can only run Apps (e.g. bought/got in the Windows Store) meaning Universal Apps What (technically) prevents running normal native programs on Windows 10 Mobile. (Of course Microsoft *prefers* arch independent CIL (aka C# aka

Re: [Lazarus] *SPAM* Re: Lazarus for mobile development?

2015-08-21 Thread Michael Schnell
On 08/20/2015 05:33 PM, Sven Barth wrote: The old Windows Mobile was an OS geared towards PDAs/smartphones, while the base system Windows CE is/was a general embedded OS. I do know this. But Microsoft keeps stating that !there is only one Windows 10 and that same is here to replace all

Re: [Lazarus] Lazarus for mobile development?

2015-08-20 Thread Michael Schnell
On 08/20/2015 12:55 PM, Chavoux Luyt wrote: Hi guys, I need to know if I can use Lazarus for mibile development on Android, Windows mobile and iOS (iPhone)? I currently use a program (written in Delphi, I think) ... The next generation of Windows Mobile seem to be Windows IOT Core (or

Re: [Lazarus] authoring user manuals

2015-08-04 Thread Michael Schnell
On 08/03/2015 04:08 PM, Gour wrote: Hello, by looking at http://wiki.lazarus.freepascal.org/Add_Help_to_Your_Application page it seems there are several options to provide help (aka user manual) for one’s app - CHM, HTML INF. As there is a wiki containing many pages that are interesting for

Re: [Lazarus] how to get Type of Sender or Components[i] in order to Cast?

2015-07-27 Thread Michael Schnell
On 07/27/2015 07:47 AM, Péter Gábor wrote: if Sender = TButton then { do something} ; I suppose you meant if Sender is TButton then { do something} ; OP: If you want to deal with a lot of different classes that might be the sender, it might help to define an array of these classes (types)

Re: [Lazarus] Tracking software useage

2015-07-24 Thread Michael Schnell
On 07/23/2015 07:01 PM, Graeme Geldenhuys wrote: I don't like call home software either. Is such not commonly called a virus ? -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Using semaphores to limit thread access

2015-07-20 Thread Michael Schnell
On 07/19/2015 06:32 PM, kapibara wrote: How to do that under Lazarus and Linux? Linux and Windows: TCriticalSection. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Using semaphores to limit thread access

2015-07-20 Thread Michael Schnell
On 07/20/2015 10:42 AM, kapibara wrote: I'm afraid that if a TCriticalSection is used, all threads except one is blocked. No. Only those that try to acquire the CriticalSection while they are owned by another thread. Critical section is just a binary (non counting) Semaphore). I never had a

Re: [Lazarus] VCLJS

2015-06-30 Thread Michael Schnell
On 06/30/2015 08:31 AM, Michael Van Canneyt wrote: There are many javascript widgetsets out there that can be used as VCL for the web: React, ExtJS, Angular, Jquery UI etc. Any recommendation for one of those to create a server-based application featuring a web-based remote GUI that is

Re: [Lazarus] Thread based timer vs TTimer

2015-06-26 Thread Michael Schnell
On 06/25/2015 10:46 AM, Graeme Geldenhuys wrote: Close. My Lazarus mirror doesn't have an 'activenogui' branch, so doing a pull will not fetch anything. I just did a test (after doing nothing than what you suggested in you previous mail ). git status said: # On branch activenogui git

Re: [Lazarus] Thread based timer vs TTimer

2015-06-26 Thread Michael Schnell
On 06/25/2015 10:46 AM, Graeme Geldenhuys wrote: $ git branch --unset-upstream activenogui Sorry: git branch --unset-upstream activenogui error: unknown option `unset-upstream' -Michael -- ___ Lazarus mailing list

Re: [Lazarus] Thread based timer vs TTimer

2015-06-26 Thread Michael Schnell
On 06/25/2015 10:46 AM, Graeme Geldenhuys wrote: This is what you want. It is best to manually update your branch with the latest Trunk changes, at a time that suites you best. OK. I expected that the updates of any file I did not change locally should be performed, while remote updates to

Re: [Lazarus] Thread based timer vs TTimer

2015-06-26 Thread Michael Schnell
On 06/25/2015 10:46 AM, Graeme Geldenhuys wrote: . When Github's instructions refer to 'origin', replace that with the name 'github'. I created a github (you were right I do have an account and there I already do have an epictimer directory. So we seemingly already have been there some time

Re: [Lazarus] Thread based timer vs TTimer

2015-06-26 Thread Michael Schnell
In fact I do see the advantage. Somebody else could do some test with the unit I did, but if we want to include it in the IDE I suppose that hardly can done without the help of GIT, as I can't home some of the IDE experts will do this. So we will need to provide a fully functional and

Re: [Lazarus] Thread based timer vs TTimer

2015-06-26 Thread Michael Schnell
On 06/26/2015 10:15 AM, Graeme Geldenhuys wrote: Then start again, by logging into Github. Then deleting your lazarus repository on Github (via their website). Then browse to my lazarus repository on Github and click the fork button. Your account should now have lazarus repository. Github

Re: [Lazarus] Thread based timer vs TTimer

2015-06-25 Thread Michael Schnell
On 06/24/2015 06:03 PM, Graeme Geldenhuys wrote: git checkout -b activenogui origin/upstream I got: Branch activenogui set up to track remote branch upstream from origin. Switched to a new branch 'activenogui' So this did work nicely. Thanks again. I suppose I now can just

Re: [Lazarus] Thread based timer vs TTimer

2015-06-25 Thread Michael Schnell
On 06/25/2015 10:46 AM, Graeme Geldenhuys wrote: On 2015-06-25 09:04, Michael Schnell wrote: I suppose I now can just do git pull to receive any updates that the Lazarus svn might provide ? Close. Ooops. I need to try to digest all this information. -Michael

Re: [Lazarus] Thread based timer vs TTimer

2015-06-25 Thread Michael Schnell
On 06/24/2015 06:03 PM, Graeme Geldenhuys wrote: On 2015-06-24 12:03, Michael Schnell wrote: Then I could send you the code to do more testing and provide suggestions. Why not simply fork the Lazarus repository on Github. OK that is a much better alternative to transfer the source code

Re: [Lazarus] Thread based timer vs TTimer

2015-06-24 Thread Michael Schnell
On 06/23/2015 04:36 PM, Graeme Geldenhuys wrote: I don't use TCustomApplication anywhere in fpGUI or my applications. I've also never had the need for QueueAsyncCall(), sorry. ;-) My easy way to do (embedded) application for headless devices (hence obviously NopGUI) is to do the application

Re: [Lazarus] Thread based timer vs TTimer

2015-06-24 Thread Michael Schnell
On 06/24/2015 12:50 PM, Paul Breneman wrote: As you know Michael I've been *very* interested for years with what you are doing. I hope to get more going with FPC and Teensy in the next few weeks: http://forum.lazarus.freepascal.org/index.php/topic,28561.0.html Then I hope to post more

Re: [Lazarus] Thread based timer vs TTimer

2015-06-23 Thread Michael Schnell
On 06/23/2015 01:57 PM, Graeme Geldenhuys wrote: I've done that in fpGUI because not everybody wants to use threads in theire software. So now the developer has a choice. Great ! IMHO a decent TApplication needs support as well for Timers as for Threads, including Application.QueueAsyncCall.

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Michael Schnell
On 06/23/2015 01:35 PM, patspiper wrote: Pls don't hijack the thread with your never ending NoGui discussions. Sorry. But for somebody coming from Delphi it is likely confusing that a NoGUI application needs to be done completely different than an Application that does have a GUI, so I

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Michael Schnell
On 06/23/2015 10:43 AM, Graeme Geldenhuys wrote: File-New Console Application That creates a Console application - thus no dependenies on GUI toolkits. And not support for things like TTimer, Application.QueuAsyncCall, Support for TThread.Queue and TThread.Synchronize needs to be provided by

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Michael Schnell
On 06/23/2015 12:51 PM, Graeme Geldenhuys wrote: Not to rehash an old topic... Maybe that is true for TTimer, but it took me all of 10 minutes to implement a multi-threaded console application and implementing a TThread based timer from scratch. All working just fine under FreeBSD. So I really

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Michael Schnell
On 06/23/2015 01:26 PM, Michael Van Canneyt wrote: Ehm. fpTimer contains just that, it exists since years. This of course is a well known fact.. But if this is the recommended way to do timers, why does *any *WidgetType (i.e. TApplication) offer TTimer ? -Michael --

Re: [Lazarus] Project defined Macros?

2015-06-22 Thread Michael Schnell
On 06/18/2015 04:43 PM, Juha Manninen wrote: Is it possible that your degenerating mind now confuses Build modes with Additions and Overrides somehow? You're welcome ;-) Anyway Additions and Overrides now has a Set LCL Widget Type dropdown box. To select the GUI system you want your project

Re: [Lazarus] Project defined Macros?

2015-06-22 Thread Michael Schnell
On 06/22/2015 02:38 PM, Juha Manninen wrote: Still I think you confused Build modes with Additions and Overrides. They are very different things. A build mode contains all compiler options, including the Additions and Overrides part. Of course I do know this after I looked it up to prepare my

Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?

2015-06-19 Thread Michael Schnell
On 06/18/2015 06:01 PM, Bo Berglund wrote: In the pas file referencing the obj file I have this: IMPLEMENTATION USES Windows; {$L SPROMEPS.OBJ} { LINK WITH THE SUPERPRO OBJECT FILE } { External functions } FUNCTION RNBOsproFormatPacket( ApiPacket : RB_SPRO_APIPACKET_PTR;

Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?

2015-06-19 Thread Michael Schnell
On 06/18/2015 06:48 PM, Bo Berglund wrote: However, this dongle component can equally well be used without being dropped anywhere Dropping is just a design time thingy. any visual component can be used by doing the appropriate initialization code manually. -Michael --

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-19 Thread Michael Schnell
On 06/19/2015 12:28 PM, Bo Berglund wrote: Safenet might be able to provide a GNU C version of that file. Except I got a reply from them that they cannot support older software in FPC So I guess I have to go the Delphi DLL route instead... That has nothing to do at all with FPC. FPC

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-19 Thread Michael Schnell
On 06/19/2015 09:50 AM, Bo Berglund wrote: Now I am getting to the real hurdle as follows: DongleTest.lpr(20,1) Error: Illegal COFF Magic while reading SPROMEPS.OBJ Googeling coff magic shows e.g. this: http://wiki.osdev.org/COFF -Michael --

Re: [Lazarus] Project defined Macros?

2015-06-18 Thread Michael Schnell
On 06/18/2015 02:46 PM, Graeme Geldenhuys wrote: I found similar functionality well hidden in Additions and Overrides. I already often used this new kind of Build modes. Seemingly I am the only one ;-) . (I am always focused on ARCH/OS/GUI-System portability.) For my degenerating mind it's

Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?

2015-06-17 Thread Michael Schnell
On 06/16/2015 06:14 PM, Graeme Geldenhuys wrote: Being open source and allowing me to customise things the way I like is a brilliant feature. He also wants to use closed source 3rd party stuff and want to impose copy protection to his projects. All that is rather queer with an open source IDE.

Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?

2015-06-16 Thread Michael Schnell
On 06/15/2015 08:21 AM, Bo Berglund wrote: If Lazarus does not work with this obj file then I would be dead in the water... Lazarus (including packages) and free pascal are cross-platform tools supporting multiple Archs and CPUs. So an obj file can't be decently supported as it will work

Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?

2015-06-16 Thread Michael Schnell
On 06/15/2015 08:21 AM, Bo Berglund wrote: - Asynch Pro It would be just great to have this ported to be runnable in Windows, Linux, and Mac as a Lazarus package ! (I would be happy to use it for my experiments, but as I don't have a real project for this, I never tried to do the port

Re: [Lazarus] fast mathematical matrix operations

2015-06-08 Thread Michael Schnell
On 06/08/2015 10:57 AM, Andrea Mauri wrote: I need code able to perform typical matrix operations (e.g. matrix multiplication, inversion, determinant and so on) as fast as possible since I deal with big matrices (thousands of rows and columns). I need it for both windows and linux (32/64).

[Lazarus] EPIKTIMER etc

2015-06-08 Thread Michael Schnell
Just to let you know In search of a problem completely unrelated to fpc and Lazarus I found out that the reason of the severe timing inaccuracy making this application being absolutely unusable for the desired task, has been Microsoft Active Directory. After I installed Automachron,

Re: [Lazarus] EPIKTIMER etc

2015-06-08 Thread Michael Schnell
On 06/08/2015 02:28 PM, Sven Barth wrote: Thus the server should normally get its time from a NTP as well... AFAIK, the AD Server does use NTP for syncing it's own time. The clients fluctuate nonetheless. -Michael -- ___ Lazarus mailing list

Re: [Lazarus] Date value 0

2015-05-28 Thread Michael Schnell
On 05/27/2015 08:48 PM, waldo kitty wrote: yes... 12:00am is midnight... 00:00am is the same... so also is 00:00 or 24:00 in 24hour time... AFAIK it's rather set that 24:00 is 00:00 the next day, but 12:00 am is not 100% confident as Mark says. -Michael --

Re: [Lazarus] Date value 0

2015-05-27 Thread Michael Schnell
For me it works as expcted var t: TDateTime; i: integer; s1, s2, s3, s4 : String; begin t := StrToDate('30-12-1899'); i := round (t); s1 := DateTimeToStr(t); s2 := IntToStr(i); t := StrToDate('29-12-1899'); i := round (t); s3 := DateTimeToStr(t); s4 := IntToStr(i); Memo1.Lines.Add (s1

Re: [Lazarus] Date value 0

2015-05-27 Thread Michael Schnell
On 05/27/2015 11:05 AM, Mark Morgan Lloyd wrote: No it can't. You have to be prepared to parse 12:00 a.m. by context but it's usually midnight. Of which day the one that also has 0:pm or of the previous ? -Michael -- ___ Lazarus mailing list

Re: [Lazarus] Date value 0

2015-05-27 Thread Michael Schnell
On 05/27/2015 12:59 AM, Sven Barth wrote: Why should that be funny? TDateTime(0.0) is defined as 12/30/1899 12:00 am. Now add two days and we are at 1/1/1900 12:00 am, so all is well... To me (being born 12/31) it's funny that that the base is not a 1/1, especially 1/1/0001. But of course

Re: [Lazarus] Date value 0

2015-05-26 Thread Michael Schnell
On 05/26/2015 01:30 PM, Juha Manninen wrote: Is there some convention how to show a date value 0? By default it shows year 1899. The patch changed it to ?. Both funny, as DateTimeToStr(2.0) is 1-1-00 ;-) -Michael -- ___ Lazarus mailing list

Re: [Lazarus] Date value 0

2015-05-26 Thread Michael Schnell
On 05/26/2015 03:30 PM, Mark Morgan Lloyd wrote: If it were something like Anno Domini 0, which quite simply never existed, then it could be displayed as invalid. It's funny, but AFAIK, you are right. By definition, before Year 1 there was Year -1 and not Year 0. Why TDateTime seemingly

Re: [Lazarus] programming tablets

2015-05-22 Thread Michael Schnell
On 05/22/2015 12:00 PM, Lukasz Sokol wrote: I would point to http://wiki.lazarus.freepascal.org/Android_Programming not tried, There are also Apple and Windows Tablets. As the goal of fpc and Lazarus is write once compile everywhere, and (other than Delhi) as well fpc and the LCL does a

Re: [Lazarus] How to display html contents?

2015-05-11 Thread Michael Schnell
On 05/06/2015 10:37 AM, Giuliano Colla wrote: I need to display some local html files in a Lazarus application, which must run under Linux. Maybe start a Browser with the file spec as parameter. -Michael -- ___ Lazarus mailing list

Re: [Lazarus] Release of Lazarus 1.4

2015-04-23 Thread Michael Schnell
On 04/22/2015 04:59 PM, Mattias Gaertner wrote: On Wed, 22 Apr 2015 16:40:02 +0200 Michael Schnell mschn...@lumino.de wrote: But how to install most easily on Linux (I always use the svn) . cd your/fpc/svn make install INSTALL_PREFIX=/usr I know this and to it often to make use

Re: [Lazarus] Release of Lazarus 1.4

2015-04-23 Thread Michael Schnell
On 04/23/2015 10:11 AM, Mattias Gaertner wrote: fpc 1.2.6? Sorry for that nonsense. As said in the first mail in this thread: FPC 2.6.4 Thanks for your patience ;-) -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Release of Lazarus 1.4

2015-04-23 Thread Michael Schnell
On 04/23/2015 11:34 AM, shoKwave wrote: You can download stable versions form svn too (fpc 2.6.4: http://svn.freepascal.org/svn/fpc/tags/release_2_6_4/). Then build and install like the trunk but using a differnt directory. Finaly switch the fpc in Lazarus. Thanks a lot ! I will give

Re: [Lazarus] Release of Lazarus 1.4

2015-04-22 Thread Michael Schnell
On 04/22/2015 02:07 PM, Mattias Gaertner wrote: Why downgrade? You can install both and switch any time in the IDE. Thanks ! But how to install most easily on Linux (I always use the svn) . -Michael (sorry for my ignorance) -- ___ Lazarus mailing

Re: [Lazarus] Release of Lazarus 1.4

2015-04-22 Thread Michael Schnell
On 04/22/2015 11:07 AM, Mattias Gaertner wrote: This release was built with FPC 2.6.4, same as the previous release Lazarus 1.2.6. I'd like to do some stuff that might be useful for the next release of Lazarus, but this needs a certain (but unknown to me) minimum release of the fpc

Re: [Lazarus] Modem config

2015-04-20 Thread Michael Schnell
I once used Synapse to do a program that via HTTP logs in to web interface of the controller of my central heating and check several status values and modifies several configuration parameters. Doing this was not exactly easy :-) . -Michael -- ___

Re: [Lazarus] How to cast a Interface to a Object in Lazaeus

2015-03-13 Thread Michael Schnell
On 03/12/2015 06:39 PM, aradeonas wrote: still my problem doesn't solve. Do you really need multiple inheritance (this seems to be the cause why you decided to go with Interfaces instead of pure classes) ? This adds some complexity that in most cases can be avoided. -Michael --

Re: [Lazarus] How to cast a Interface to a Object in Lazaeus

2015-03-13 Thread Michael Schnell
On 03/13/2015 09:46 AM, aradeonas wrote: Yes I need In fact I doubt this. (And don't do top-posing.This is very impolite.) -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] How to cast a Interface to a Object in Lazarus

2015-03-13 Thread Michael Schnell
On 03/13/2015 10:49 AM, aradeonas wrote: So in the end how can I cast a Interface to a Object in Lazarus? You can't. An interface contains one or more object(s), so you can't cast it to same. -Michael -- ___ Lazarus mailing list

Re: [Lazarus] Compare record

2015-03-11 Thread Michael Schnell
On 03/11/2015 08:57 AM, aradeonas wrote: operator = (aLeft, aRight: TRec): Boolean; Seemingly with operator =, operator is automatically overloaded. Nonetheless it is possible to do your own (contradicting) operator if you like :-) . -Michael --

Re: [Lazarus] Compare record

2015-03-11 Thread Michael Schnell
On 03/11/2015 08:57 AM, aradeonas wrote: operator = (aLeft, aRight: TRec): Boolean; I get Logical Operator not supported. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Compare record

2015-03-11 Thread Michael Schnell
On 03/11/2015 10:02 AM, Michael Schnell wrote: I get Logical Operator not supported. I do have: {$mode objfpc}{$H+} -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Compare record

2015-03-11 Thread Michael Schnell
On 03/11/2015 10:02 AM, Michael Schnell wrote: I get Logical Operator not supported. I found that seemingly overloading an operator is not allowed within a procedure, while defining a type is allowed. Is this a bug or a feature ? Anyway, the error message is a bit misleading -Michael

Re: [Lazarus] Compare record

2015-03-11 Thread Michael Schnell
On 03/11/2015 10:31 AM, Mattias Gaertner wrote: Alternatively you can declare the operator inside TRec if you enable modeswitch advancedrecords It means: {$modeswitch advancedrecords} Nice ! (I tested this but forgot the mode switch ;) ) Why is this mode not the default ? -Michael --

<    1   2   3   4   5   6   7   8   9   10   >