[fpc-pascal] linking Openwatcom object files (DOS)

2019-08-20 Thread Andreas Berger
still in use by the company I work for from C++ to Freepascal. Regards, Andreas Berger ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Link with GCC object files

2018-08-22 Thread Andreas Berger
Thank you Sven, this will be a big help Regards, Andreas On 22/08/2018 12:12, Sven Barth via fpc-pascal wrote: Andreas > schrieb am Mi., 22. Aug. 2018, 12:59: Hi, I have a question. Is it possible to link FPC for Linux (PC and ARM) with GCC or

Re: [fpc-pascal] MSEide+MSEgui 4.6 for FPC 3.0.4

2017-11-28 Thread Andreas Berger
On 25/11/2017 14:43, Martin Schreiber wrote: On Saturday 25 November 2017 15:04:05 Andreas Berger wrote: On the Android side I actually only need a graphical app with access to the Bluetooth and possibly be a TCP client. And why Free Pascal to develop the android application? What would

Re: [fpc-pascal] MSEide+MSEgui 4.6 for FPC 3.0.4

2017-11-25 Thread Andreas Berger
On the Android side I actually only need a graphical app with access to the Bluetooth and possibly be a TCP client. On 25/11/2017 10:28, Martin Schreiber wrote: On Saturday 25 November 2017 11:52:39 Andreas Berger wrote: I went back to Delphi because our company is converting all programs

Re: [fpc-pascal] MSEide+MSEgui 4.6 for FPC 3.0.4

2017-11-25 Thread Andreas Berger
I went back to Delphi because our company is converting all programs that the maintenance uses to work on cell phones. Rad Studio 10.2 was bought and even our desktop programs are being converted form FPS/Delphi7 to Delphi 10. If FPC for Android worked off the shelf I probably could convince

Re: [fpc-pascal] New feature: IfThen() intrinsic

2016-02-02 Thread Andreas Berger
On Tue 02/02/2016 10:52, Serguei TARASSOV wrote: On 02/02/2016 13:41, fpc-pascal-requ...@lists.freepascal.org wrote: Date: Tue, 02 Feb 2016 10:32:28 -0200 From: Andreas Berger<andr...@thebergerclan.org> On Tue 02/02/2016 09:27, Jonas Maebe wrote: > >The parameter evaluation

Re: [fpc-pascal] Parameter evaluation order

2016-02-02 Thread Andreas Berger
On Tue 02/02/2016 10:41, Jonas Maebe wrote: Andreas Berger wrote on Tue, 02 Feb 2016: On Tue 02/02/2016 09:27, Jonas Maebe wrote: The parameter evaluation order issue is irrelevant in this context: Delphi guarantees left-to-right (or used to anyway, this may have changed), FPC doesn't

Re: [fpc-pascal] SetLength procedure

2014-07-27 Thread Andreas Berger
I very seldom comment on this, or any, forum unless I have a good answer and no one else seem to have one. This case is different. I have noticed quit often here that instead of answering the question people try to reason why in the world the author of the question would even want to do this.

Re: [fpc-pascal] CrossFPC is finally released

2012-12-31 Thread Andreas Berger
Simon, If I use CrossFPC with D7 or XE3 + FPC for windows, will the Delphi IDE use it's built-in debugger? The main reason I don't use Lazarus is because of the lousy debugging in Windows. Regards, Andreas ___ fpc-pascal maillist -

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-07 Thread Andreas Berger
FPC uses MT at least for 10 years and nobody complained about performance yet. So I suspect the cases might be very rare when random performance matters and having good random numbers is always a good thing ... I prefer not to change it but it's fine for me for delphi compatibility's sake ;) Or

[fpc-pascal] FPC for ARM-7

2011-07-23 Thread Andreas Berger
I am hoping to use FPC for ARM-7, compiling and debugging on a Windows machine. At the moment I am using Keil C + ULink2. Is it possible to use FPC from Windows and debug via the ULink2? Regards, Andreas ___ fpc-pascal maillist -

Re: [fpc-pascal] Can variables be declared within a block?

2010-10-18 Thread Andreas Berger
for (int i = 0;...) Can't see anything wrong. I use declaration of variables inside blocks quite often in Java and C++ but have never missed it in pascal. Please enlighten me. What is so bad about creating temporary variables inside blocks instead of the beginning of a function in a language

Re: [fpc-pascal] Can variables be declared within a block?

2010-10-18 Thread Andreas Berger
But it should make you wonder why this is no longer allowed in the latest C++ standards. What do you mean? The current C++ standard (ISO 1998+TR1) permits short scope declarations. Indeed, C++ permits declarations to appear anywhere, not just after a { to open a function or compound

[fpc-pascal] ARM-Cortex port

2010-08-23 Thread Andreas Berger
I know that FPC works under ARM+Linux. Is this also true for the Cortex version of ARM? One of our major applications is written in C++ simply because it is to run in the future on an embedded system as well as the PC. Well the embedded processor has been chosen - the Luminary (TI) ARM-Cortex

Re: [fpc-pascal] ARM-Cortex port

2010-08-23 Thread Andreas Berger
Thanks Jonas and Jeppe for your answers. I will probably wait then to switch (or try to convince the company to use an ARM-9) On 23/8/2010 11:21 AM, Jeppe Johansen wrote: Den 23-08-2010 16:09, Andreas Berger skrev: I know that FPC works under ARM+Linux. Is this also true for the Cortex

[fpc-pascal] Crosscompile FPC from Win32 to Linux

2010-06-04 Thread Andreas Berger
I have a stable cgi program running in windows (no libraries - simple writeln). However, our web host is in linux. Is there a simple way for me to cross-compile the app? or is it easier to learn how to use linux and do it there? I saw a page how to crosscompile lazarus, but it seamed very

Re: [fpc-pascal] Forum merger

2009-12-16 Thread Andreas Berger
If I made one, then I'll make it using Powtils (fully CGI) or ExtPascal (fully Ajax) because that's what I know and have been experience with. I myself prefer to use fpWeb since it's provided by FPC's FCL. No third party dependency is good for new comers, and it's also better FPC/Lazarus

Re: [fpc-pascal] Forum merger

2009-12-15 Thread Andreas Berger
Yes, this is it. I don't have any experience in building web-applications with Pascal, but if someone registers a new project at Gitorious or somewhere else I would like to help as far as I can. As would I. I will soon need to write a CGI program, and this would be a great way.

Re: [fpc-pascal] Persistent blocks in Lazarus

2009-07-17 Thread Andreas Berger
On Thu, Jul 16, 2009 at 01:36:15PM +0200, Andreas Berger wrote: Out of curiosity (because I never used this feature in any editor), what would you use it for? Persistent blocks and the full Wordstar keyboard shortcuts is why I use the Delphi IDE until today. If you miss

Re: [fpc-pascal] Persistent blocks in Lazarus

2009-07-17 Thread Andreas Berger
- The Keyboard layout/scheme for wordstar ? How different is that from current default, or classic-scheme default? I modified the classic-schema a few years ago to be mostly wordstar correct. What I didn't do at the time was add persistent blocks.

Re: [fpc-pascal] Persistent blocks in Lazarus

2009-07-16 Thread Andreas Berger
Out of curiosity (because I never used this feature in any editor), what would you use it for? Persistent blocks and the full Wordstar keyboard shortcuts is why I use the Delphi IDE until today. ___ fpc-pascal maillist -

[fpc-pascal] proxy for sql

2009-03-19 Thread Andreas Berger
This isn't really a FPC question, but since the application is being written in FPC I thought I would ask here. I am developing an application that controls machinery. The application will store everything that happens in a SQL database. Some clients (restricted) should have permission to

Re: [fpc-pascal] proxy for sql

2009-03-19 Thread Andreas Berger
Martin Friebe wrote: Here is another idea. You would still need a user on the DB, to limit what can be accessed. But to check if access should be granted (allow or deny tcp) you can use your own software. All you need is some sort of Proxy/socket forwarder, that you can implement using FPC.

Re: [fpc-pascal] Creating FPC enabled websites

2009-03-02 Thread Andreas Berger
I'm interested to know why no one mentioned powtils yet (other than the original poster). I also am looking into writing a fairly complex CGI program and powtils seems very promising. And comments? Marco van de Voort wrote: In our previous episode, Francisco Reyes said: Marco van de Voort

Re: [fpc-pascal] Connecting SQL components to a propriety SQL server

2008-05-29 Thread Andreas Berger
I have a friend that has a product which is composed of an embedded system spread around Brazil and communicating with a central PC. I am convincing him to migrate some of his PC tools to Pascal in order to ease my help for him. The question I have is this: He has his own small SQL server on

[fpc-pascal] Sharing memory between applications

2008-05-20 Thread Andreas Berger
I need to share memory between applications and wanted to know if FPC has this implemented. Today I use the windows CreateFileMapping function, but this is windows specific. Another thing: To synchronize the shared memory I use a mutex which can be initialized be name on each application. Can

Re: [fpc-pascal] The reason why linus torvalds hate-pascal

2008-04-20 Thread Andreas Berger
mm wrote: Zaher Dirkey a écrit : I hate exit when i try to improve a procedure some code if (b) then exit; some code for long procedures i cant notice exit here and add some resource or memory uses AnObject := TAnObject.Create; try some code if (b) then exit; some code finally

Re: [fpc-pascal] The reason why linus torvalds hate-pascal

2008-04-20 Thread Andreas Berger
C provides the infinitely-abusable goto statement, and labels to branch to. Formally the goto is never necessary and in practice it is almost always easy to write code without it. We have not used goto in this book. Nonetheless , we will suggest a few situations where goto's may find a

Re: [fpc-pascal] The reason why linus torvalds hate-pascal

2008-04-18 Thread Andreas Berger
for a := 0 to x do for b := 0 to y do for c := 0 to z do if (...) then begin // Do something and then exit all loops exit; // Or maybe: goto OutSideOfLoops; end; In Pascal I can't change the 'a' and 'b' values to force the end of the loop. So what other

Re: [fpc-pascal] The reason why linus torvalds hate-pascal

2008-04-17 Thread Andreas Berger
I think exit and goto have their uses. Here is an example: for a := 0 to x do for b := 0 to y do for c := 0 to z do if (...) then begin // Do something and then exit all loops exit; // Or maybe: goto OutSideOfLoops; end; In Pascal I can't change the

Re: [fpc-pascal] Basic question about TStringList

2008-03-27 Thread Andreas Berger
Hi, I seek help to clarify a very basic use of TStringList. Let A and B be TStringLists. What is the difference between: A:=B; and A.Assign(B); ? That's more a basic(?) question about Pascal. When you do A:=B; then A has become equal to B. That means for example that if you add an

[fpc-pascal] PThreads

2007-10-10 Thread Andreas Berger
I just found this link to Win32 PThreads and wanted to know if FPC uses pthreads in the Windows implementation. It would probably ease use. The main inconvenience to this library is that it wants to use a dll and the nice thing about FPC is "no dependencies". So maybe an interface to the C

[fpc-pascal] FPC 2.2.0 for DOS

2007-09-11 Thread Andreas Berger
Can someone tell me what needs to be done to have FPC 2.2.0 for DOS? Regards, Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 2.2.0 for DOS

2007-09-11 Thread Andreas Berger
Daniël Mantione wrote: Can someone tell me what needs to be done to have FPC 2.2.0 for DOS? Well, this time it is in good state, for a change. A release needs to be build and tested to work and install correctly. Is this in the works? If not how do I compile (and especially test)

Re: [fpc-pascal] OT: Rename for Pascal

2007-08-13 Thread Andreas Berger
I am doing two free-lance projects at the moment for two clients. One insists that I use C++ and Qt. When I suggested Delphi (I started this 5 years ago) he was offended. The other client didn't care. When I told him about installation of one singe EXE (no libraries, dll's and other

Re: [fpc-pascal] USB serial interface

2006-12-26 Thread Andreas Berger
We tried USB converters with prolific chipset and it hangs up then, so FTDI chips would be better. I read also somewhere a lack of latency. May be it is also a question of the Kerneldriver and the driver will improve more in the future. I have two Prolific 2303 serial converters without

Re: [fpc-pascal] RE: [lazarus] Article on Pixel.

2006-12-11 Thread Andreas Berger
On 12/11/06, Tomas Hajny [EMAIL PROTECTED] wrote: I'd just like to add that SDL is used for many other platforms as far as I know, not just Linux (at least OS/2, MorphOS, FreeBSD, Mac OS X and Zeta). I don't know to much about SDL. Does it handle anti-aliased line drawing, transparency,

Re: [fpc-pascal] Implementing a true Singleton - Can we decrease the visibility of a method?

2006-12-08 Thread Andreas Berger
Graeme Geldenhuys wrote: On 12/8/06, TOndrej [EMAIL PROTECTED] wrote: On 12/8/06, Graeme Geldenhuys [EMAIL PROTECTED] wrote: I still don't know why we can't decrease visibility in Free Pascal. Is there some internal language design that prevents it? A class definition (or at least its

[fpc-pascal] Why Pascal

2006-09-03 Thread Andreas Berger
I just found this article. If anyone needs/wants to promote pascal as a language, there are some nice arguments here. http://www.codexterity.com/raw-delphi/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] TCP Server

2006-08-18 Thread Andreas Berger
OK, I downloaded the synapse, but I don't know how to use it to make a TCP server. I need to do a server that listen on a specific port. After connected the client will send some commands to the server that will make some actions and return the results to the client. Basicly the client

Re: [fpc-pascal] DOS Timer Interrupt, serial Interrupt

2006-08-10 Thread Andreas Berger
Rainer Stratmann wrote: Hello, is there a document or sample code for accessing the timer interrupt and the serial interrupt in DOS mode. Rainer I found that getintvec and setintvec do not work. Use get_pm_interrupt and set_pm_interrupt instead. Andreas

Re: [fpc-pascal] X Windows and FPC

2006-07-30 Thread Andreas Berger
Very, very nice. One question: Will eventually be able to reposition objects when the form size is changed? For example: A line has two Edits + Label. When the form is diminished horizontally, and the two edits no longer fit the the same line without violating their minimum sizes, will the

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-27 Thread Andreas Berger
Steve Williams wrote: Michael Van Canneyt wrote: Which is why I think that it's better to have them as local functions, instead of having to introduce a lot of new functions. Local functions are very pascal-ish. C doesn't have it, which is why they can't use it. Let's

Re: [fpc-pascal] Compiling the compiler

2006-07-27 Thread Andreas Berger
Tomas Hajny wrote: No wonder. ;-) When using make all, the new (2.1.1) compiler is compiled using the starting compiler (2.0.x). Make cycle tries to make sure that the created compiler is still useable, at least that useable that it can still build itself. It does so by doing the same thing

Re: [fpc-pascal] Compiling the compiler

2006-07-27 Thread Andreas Berger
Tomas Hajny wrote: On 27 Jul 06, at 19:01, Andreas Berger wrote: Tomas Hajny wrote: No wonder. ;-) When using make all, the new (2.1.1) compiler is compiled using the starting compiler (2.0.x). Make cycle tries to make sure that the created compiler is still useable, at least

Re: [fpc-pascal] Compiling the compiler

2006-07-26 Thread Andreas Berger
Florian Klaempfl wrote: Andreas Berger wrote: I am using the v20 base compiler The only supported bootstrapping compiler is the last release compiler, i.e. 2.0.2. That is what I am using. ___ fpc-pascal maillist - fpc-pascal

[fpc-pascal] TThreadManager

2006-07-25 Thread Andreas Berger
What is this for? Although most threading implementations set this record, it does not seem to be used by the system. The only implementation that even calls the functions set is the unix implementation, and it does it internally. Do I need to use this if I implement threading in DOS?

Re: [fpc-pascal] Compiling the compiler

2006-07-25 Thread Andreas Berger
Vincent Snijders wrote: Andreas Berger schreef: Andreas Berger wrote: I have a problem compiling the compiler. After a lot of compilation it attempts to compile pp.pas and I get the following error: pp.pas(213,1) Error: Entrypoint start not defined. I downloaded todays snapshot and had

[fpc-pascal] Compiling the compiler

2006-07-24 Thread Andreas Berger
I downloaded the latest snapshot and wish to recompile the fpc compiler for G032v2. I found an old doc that says to: cd compiler make cycle This obviously will not work since FPC has fpcmake and not make. There is also no makefile called cycle in the compiler folder. Can someone tell me how

Re: [fpc-pascal] Compiling the compiler

2006-07-24 Thread Andreas Berger
Steve Williams wrote: Andreas Berger wrote: I downloaded the latest snapshot and wish to recompile the fpc compiler for G032v2. I found an old doc that says to: cd compiler make cycle This obviously will not work since FPC has fpcmake and not make. There is also no makefile called

[fpc-pascal] mutexes and semaphores.

2006-07-16 Thread Andreas Berger
In order to implement threading in DOS I will need to use some type of mutex, but would like to implement it the FPC way. Does FPC implement platform independent mutexes and/or semaphores? Or must each platform use it's own OS specific versions? Regards, Andreas

[fpc-pascal] Using the interrupt keyword in FPC for DOS

2006-07-13 Thread Andreas Berger
FPC has the interrupt keyword on GO32V2. Is this the same as that used in TP/BP? There I could declare an interrupt function like: procedure ISR(Flags, CS, IP, AX, BX, CX, DX,| SI, DI, DS, ES, BP : WORD); interrupt; Is this the same in FPC? In what order are the register variables?

Re: [fpc-pascal] Threading in FPC DOS

2006-07-12 Thread Andreas Berger
Since Dos can have multiple ways of multitasking (it could e.g. also plug in to DV or Win3.x or TopView via int 2FH etc) this model seems advisable to me. I assume you are implementing a basic fixed timeslicer? What are you going to use it for btw? This because DV/X (which is free nowadays)

Re: [fpc-pascal] Threading in FPC DOS

2006-07-12 Thread Andreas Berger
@Vincent thanks for your detailed reply :) @All Vinzent Hoefler wrote: On Wednesday 12 July 2006 11:34, Andreas Berger wrote: save and restore the floating point unit. I will need to do this for FPC, so if someone knows how to save and restore the FPU, I would apreciate the help. F

[fpc-pascal] Threading in FPC DOS

2006-07-11 Thread Andreas Berger
I need to implement some simple threading in a DOS application I am writing with FPC. What I need to know is the following: 1) Does FPC protect it's stack or can I allocate memory from the heap and point SS and ESP to it for the threads stack. 2) If the stack is protected, how do I allocate