Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-26 Thread Michael Van Canneyt
On Wed, 25 Mar 2015, Sven Barth wrote: On 25.03.2015 19:57, fredvs wrote: PS: Why everything must be so compilcated with Windows ? It's not if developers wouldn't decide to make their libraries so *nix centric... I don't understand this remark ? What is so *nix centric about a file descr

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-26 Thread Marc Weustink
fredvs wrote: Hello. Sorry to sorry to bother you with that file descriptors again... ;-( There are some answers there on mpg123 forum. They explain that "simple stdin/stdout file descriptors would work." Of course all what they explained is in C ;-( OK, but how can i use "simple stdin/stdout

[fpc-pascal] Writing a Console App in FreePascal that connects to MySQL

2015-03-26 Thread Terry A. Haimann
I was trying to see how to write a Console Appication in FreePascal that will connect to MySQL. I know how to do this in c, but thought it would be interesting to be able to do it in Pascal. How should FConnection and FTransaction be declared or are the declared in a library somewhere? I have t

Re: [fpc-pascal] Writing a Console App in FreePascal that connects to MySQL

2015-03-26 Thread LacaK
How should FConnection and FTransaction be declared or are the declared in a library somewhere? I have the following source code which is based on the web site http://wiki.freepascal.org/SqlDBHowto, but does not compile: There was typo Change FConnection to MyConnection and FTransaction to

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-26 Thread Michael Van Canneyt
On Wed, 25 Mar 2015, Marc Weustink wrote: fredvs wrote: Hello. Sorry to sorry to bother you with that file descriptors again... ;-( There are some answers there on mpg123 forum. They explain that "simple stdin/stdout file descriptors would work." Of course all what they explained is in C ;-

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-26 Thread Sven Barth
Am 26.03.2015 08:26 schrieb "Michael Van Canneyt" : > > > > On Wed, 25 Mar 2015, Sven Barth wrote: > >> On 25.03.2015 19:57, fredvs wrote: >>> >>> PS: Why everything must be so compilcated with Windows ? >> >> >> It's not if developers wouldn't decide to make their libraries so *nix centric... > >

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-26 Thread fredvs
Hello. For info, here answer from mpg123 creator => __ > 4) Assisgn input pipe stream => > mpg123_open_fd(MyMPHandle,InHandle); > => Crash on Windows, OK on Linux. I don't have my head wrapped around the pascal bindings, but are you hand