Re: [fpc-pascal] How to use the `signals` unit?

2015-10-22 Thread Sven Barth
Am 23.10.2015 06:29 schrieb "silvioprog" : > > On Thu, Oct 22, 2015 at 6:40 AM, Sven Barth wrote: >> >> Am 22.10.2015 09:23 schrieb "silvioprog" : >> > What is the secret to use this it on Windows? >> >> The secret is to not use it. It's only real use is in the textmode IDE and maybe there it shou

Re: [fpc-pascal] Basic Windows tutorial

2015-10-22 Thread Sven Barth
Am 23.10.2015 03:36 schrieb "Ryan Joseph" : > > > > On Oct 23, 2015, at 2:03 AM, Sven Barth wrote: > > > > Out of curiosity: in how far aren't you a fan of Lazarus' layout? Many parts can be configured. Especially the code tools that Lazarus provides makes navigating/writing code rather easy. > >

Re: [fpc-pascal] How to use the `signals` unit?

2015-10-22 Thread silvioprog
On Thu, Oct 22, 2015 at 6:40 AM, Sven Barth wrote: > Am 22.10.2015 09:23 schrieb "silvioprog" : > > What is the secret to use this it on Windows? > > The secret is to not use it. It's only real use is in the textmode IDE and > maybe there it should be checked whether it can be replaced. > So is t

Re: [fpc-pascal] Basic Windows tutorial

2015-10-22 Thread Ralf Quint
Ryan Joseph wrote: On Oct 23, 2015, at 2:03 AM, Sven Barth wrote: Out of curiosity: in how far aren't you a fan of Lazarus' layout? Many parts can be configured. Especially the code tools that Lazarus provides makes navigating/writing code rather easy. I don’t use the RAD tools so those are

Re: [fpc-pascal] Basic Windows tutorial

2015-10-22 Thread leledumbo
> I don’t use the RAD tools so those are in the way but the biggest problem is how everything is broken up into separate windows. Could that be changed? According to my installed Lazarus: yes lazarus-docked.png

Re: [fpc-pascal] Basic Windows tutorial

2015-10-22 Thread Ryan Joseph
> On Oct 23, 2015, at 2:03 AM, Sven Barth wrote: > > Out of curiosity: in how far aren't you a fan of Lazarus' layout? Many parts > can be configured. Especially the code tools that Lazarus provides makes > navigating/writing code rather easy. I don’t use the RAD tools so those are in the wa

[fpc-pascal] Getting build ID

2015-10-22 Thread Mark Morgan Lloyd
If a program is linked with GNU ld using the --build-id option, how can it retrieve the value at runtime? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pasca

Re: [fpc-pascal] Basic Windows tutorial

2015-10-22 Thread Sven Barth
On 22.10.2015 15:49, Ryan Joseph wrote: I installed Lazarus which I think is the preferred IDE for FPC (if not are there others?) Yes, MSEide is also very good. Even using a very good text editor like EditPad Pro is very nice. Geany IDE also works well with FPC. Granny IDE looks nice (I’m

Re: [fpc-pascal] Basic Windows tutorial

2015-10-22 Thread Graeme Geldenhuys
On 2015-10-22 14:49, Ryan Joseph wrote: > Looks pretty straight forward and simple compared to Cocoa on the > Mac. Win32 API is not hard, it is just a lot more effort to write a program using only the Windows API. eg: fpGUI Toolkit also uses the Win32 API to create windows, set border styles, win

Re: [fpc-pascal] Basic Windows tutorial

2015-10-22 Thread Ryan Joseph
Thanks, there’s a lot for me to go through here. Should keep me busy. :) > On Oct 22, 2015, at 7:45 PM, leledumbo wrote: > >> where is a good place to start? >> Are there are any example projects for this > > http://delphi.about.com/od/windowsshellapi/l/aa111503a.htm, especially > chapter 2 > h

Re: [fpc-pascal] Basic Windows tutorial

2015-10-22 Thread Ryan Joseph
Thanks Paul. I’ve been using FPC since 2005 now but on the Mac (and UNIX command line) so everything on Windows is new to me. > On Oct 22, 2015, at 8:02 PM, Paul Breneman wrote: > > I have this tutorial started that I'd like to improve (feedback welcome): > http://www.controlpascal.com/tutoria

Re: [fpc-pascal] Basic Windows tutorial

2015-10-22 Thread Ryan Joseph
> On Oct 22, 2015, at 6:07 PM, Graeme Geldenhuys > wrote: > > On 2015-10-22 05:20, Ryan Joseph wrote: >> Keeping in mind I know literally nothing about Windows programming, >> where is a good place to start? > > Start reading MSDN and study the Win32 API. Looks pretty straight forward and sim

Re: [fpc-pascal] Basic Windows tutorial

2015-10-22 Thread Paul Breneman
On 10/22/2015 12:20 AM, Ryan Joseph wrote: I’d like to start doing some basic Windows programming to learn but not use the higher level Lazarus cross-platform library. Keeping in mind I know literally nothing about Windows programming, where is a good place to start? I installed Lazarus which

Re: [fpc-pascal] Basic Windows tutorial

2015-10-22 Thread leledumbo
> where is a good place to start? > Are there are any example projects for this http://delphi.about.com/od/windowsshellapi/l/aa111503a.htm, especially chapter 2 http://www.angelfire.com/hi5/delphizeus/, seems pretty complete http://www.winprog.org/tutorial/, my reference when I learned win32 API y

Re: [fpc-pascal] Basic Windows tutorial

2015-10-22 Thread Sven Barth
Am 22.10.2015 09:25 schrieb "Ryan Joseph" : > Keeping in mind I know literally nothing about Windows programming, where is a good place to start? I installed Lazarus which I think is the preferred IDE for FPC (if not are there others?) and I would like to start with making a simple window programma

Re: [fpc-pascal] Basic Windows tutorial

2015-10-22 Thread Graeme Geldenhuys
On 2015-10-22 05:20, Ryan Joseph wrote: > Keeping in mind I know literally nothing about Windows programming, > where is a good place to start? Start reading MSDN and study the Win32 API. > I installed Lazarus which I think is the preferred IDE for FPC (if not are > there others?) Yes, MSEide i

Re: [fpc-pascal] using eventfd

2015-10-22 Thread Henry Vermaak
On Wed, Oct 21, 2015 at 06:43:41PM +0200, Andreas Klausmann wrote: > Hi, > > which unit(s) do I have to include to use eventfd() under Linux? I don't think anyone has added it to the linux unit, unfortunately. You'll have to call it directly with Do_SysCall() in unit syscall. > Is this function

Re: [fpc-pascal] How to use the `signals` unit?

2015-10-22 Thread Sven Barth
Am 22.10.2015 09:23 schrieb "silvioprog" : > What is the secret to use this it on Windows? The secret is to not use it. It's only real use is in the textmode IDE and maybe there it should be checked whether it can be replaced. AFAIR the signals unit is even completely broken if SEH is enabled (def

Re: [fpc-pascal] FPC 3.0.0-rc2 release

2015-10-22 Thread Jonas Maebe
Mazola Winstrol wrote: I'm about to start a new project. Do you recommend to use the release candidate version or the stable 2.6.4? The release candidate. The final 3.0 version should be pretty much identical. Jonas ___ fpc-pascal maillist - fpc

[fpc-pascal] using eventfd

2015-10-22 Thread Andreas Klausmann
Hi, which unit(s) do I have to include to use eventfd() under Linux? Is this function used internally by TEvent? Or where does TEvent end up on Linux level to create the event handle? I'm looking for a way to wait for >=2 events without polling. A thread should yield until one of them has bee

[fpc-pascal] Basic Windows tutorial

2015-10-22 Thread Ryan Joseph
I’d like to start doing some basic Windows programming to learn but not use the higher level Lazarus cross-platform library. Keeping in mind I know literally nothing about Windows programming, where is a good place to start? I installed Lazarus which I think is the preferred IDE for FPC (if not

Re: [fpc-pascal] El Capitan 10.11 installation

2015-10-22 Thread Ryan Joseph
Simon has a guide which is aimed at iOS but is for Xcode also. http://blog.naver.com/simonsayz/220485321971 Here are the latest version of the headers (for 10.10) which I maintain and you’ll probably need to learn about Objective Pascal and Cocoa also if you want to make GUI apps. https://gith

Re: [fpc-pascal] How to use the `signals` unit?

2015-10-22 Thread silvioprog
Oops ... On Wed, Oct 21, 2015 at 3:12 PM, silvioprog wrote: > What is the secret to use this it on Windows? > I meant: "... to use it on Windows ..". -- Silvio Clécio ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal

Re: [fpc-pascal] FPC 3.0.0-rc2 release

2015-10-22 Thread Mazola Winstrol
I'm about to start a new project. Do you recommend to use the release candidate version or the stable 2.6.4? Regards ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] How to use the `signals` unit?

2015-10-22 Thread silvioprog
Hello, What is the secret to use this it on Windows? I have the following example in C: begin code === #include #include #include void sigproc() { printf("You have pressed Ctrl-C\n"); exit(0); } main() { signal(SIGINT, sigproc); printf("Use Ctrl-C to quit\n"); for

Re: [fpc-pascal] El Capitan 10.11 installation

2015-10-22 Thread Jonas Maebe
Yorgo Yeorgiou wrote on Wed, 21 Oct 2015: Could someone suggest me a way to install Pascal on a Mac running El capitan with XCode 7 IDE? Download the installer from http://www.freepascal.org/down/i386/macosx-netherlands.var and follow the instructions on that page (the ones for 'Xcode 5+

Re: [fpc-pascal] El Capitan 10.11 installation

2015-10-22 Thread Graeme Geldenhuys
On 2015-10-21 09:18, Yorgo Yeorgiou wrote: > Could someone suggest me a way to install Pascal on a Mac http://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/2.6.4/ Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My