Re: [fpc-pascal] RTL deprecated functions

2009-05-10 Thread Marco van de Voort
In our previous episode, fpcl...@silvermono.co.za said: Are there replacements for the deprecated CreateShellArgV and FreeShellArgV functions and procedure that are currently defined in genfuncs.inc? Not currently. What do you need them for? ___

[fpc-pascal] Missing File attribute in filutilh.inc?

2009-05-10 Thread fpclist
Hi guys Tinkering with Findfirst, Findnext functions within Linux, I discovered that the file attribute pointing to the parent dir and the curent dir (. + ..) are missing from filutilh.inc - Am I looking in the wrong place? I found that the following works; procedure Test(); const

Re: [fpc-pascal] Missing File attribute in filutilh.inc?

2009-05-10 Thread Jonas Maebe
On 10 May 2009, at 11:44, fpcl...@silvermono.co.za wrote: Tinkering with Findfirst, Findnext functions within Linux, I discovered that the file attribute pointing to the parent dir and the curent dir (. + ..) are missing from filutilh.inc - Am I looking in the wrong place? I found that

Re: [fpc-pascal] Missing File attribute in filutilh.inc?

2009-05-10 Thread Michael Van Canneyt
On Sun, 10 May 2009, fpcl...@silvermono.co.za wrote: Hi guys Tinkering with Findfirst, Findnext functions within Linux, I discovered that the file attribute pointing to the parent dir and the curent dir (. + ..) are missing from filutilh.inc - Am I looking in the wrong place? I never

Re: [fpc-pascal] RTL deprecated functions

2009-05-10 Thread fpclist
On Sunday 10 May 2009 11:03:00 Marco van de Voort wrote: In our previous episode, fpcl...@silvermono.co.za said: Are there replacements for the deprecated CreateShellArgV and FreeShellArgV functions and procedure that are currently defined in genfuncs.inc? Not currently. What do you need

Re: [fpc-pascal] Missing File attribute in filutilh.inc?

2009-05-10 Thread fpclist
On Sunday 10 May 2009 12:11:55 Michael Van Canneyt wrote: On Sun, 10 May 2009, fpcl...@silvermono.co.za wrote: Hi guys Tinkering with Findfirst, Findnext functions within Linux, I discovered that the file attribute pointing to the parent dir and the curent dir (. + ..) are missing from

Re: [fpc-pascal] fpselect does not work on linux

2009-05-10 Thread Rainer Stratmann
Am Samstag, 9. Mai 2009 20:25 schrieb dmitry boyarintsev: How can I find out if a socket connection in a nonblocking mode is established? according to the man page, you're doing correct path: http://linux.die.net/man/2/connect i did use non-blocking connection for both Linux and OSX, and

Re: [fpc-pascal] How to use OpenGL 2.0 fatures

2009-05-10 Thread Lord Satan
On Sat, 9 May 2009 22:29:51 +0400 dmitry boyarintsev skalogryz.li...@gmail.com wrote: ANY OS must call it (both Linux and OSX), otherwise function variables are not initialized! But this is an FPC restriction not an OpenGL one. My own OpenGL headers did not need this and they worked. Anyway,

Re: [fpc-pascal] Doubts

2009-05-10 Thread Jonas Maebe
On 06 May 2009, at 20:29, Lourival Mendes wrote: Dear all, I would like to write a program that must work in MS DOS with an input from file and output to another file, also I would like to compile the same program in linux with the same premises (input and output to files). There should be

Re: [fpc-pascal] Where does Write(Ln) actually write to?

2009-05-10 Thread Jonas Maebe
On 05 May 2009, at 06:21, leledumbo wrote: I'm almost there to have Write(Ln) works for my OS. I've made SysInitStdIO call OpenStdIO(Output,fmOutput,StdOutputHandle); and calling Write(Ln) gives no error (i.e. IOResult = 0). But where does it actually write to? If I can access the

Re: [fpc-pascal] How to use OpenGL 2.0 fatures

2009-05-10 Thread Marco van de Voort
In our previous episode, Lord Satan said: On Sat, 9 May 2009 22:29:51 +0400 dmitry boyarintsev skalogryz.li...@gmail.com wrote: ANY OS must call it (both Linux and OSX), otherwise function variables are not initialized! But this is an FPC restriction not an OpenGL one. My own OpenGL

Re: [fpc-pascal] How to use OpenGL 2.0 features

2009-05-10 Thread Lord Satan
On Sat, 9 May 2009 22:29:51 +0400 dmitry boyarintsev skalogryz.li...@gmail.com wrote: uses ...gl, glext... ... if not Load_GL_version_2_0 then begin writeln('OpenGL 2.0 is not supported'); Halt; end; ... This does not work for me. I added it to the Init function of my

Re: [fpc-pascal] How to use OpenGL 2.0 features

2009-05-10 Thread Lord Satan
On Sun, 10 May 2009 17:54:49 +0400 dmitry boyarintsev skalogryz.li...@gmail.com wrote: hope it helps. It does, thanks. So it looks like I have to init all OpenGL versions from 1.2 to 2.0 to make sure that all OpenGL 2.0 core functions are initialized. Is this true? Nonetheless, I don't

Re: [fpc-pascal] How to use OpenGL 2.0 features

2009-05-10 Thread dmitry boyarintsev
So it looks like I have to init all OpenGL versions from 1.2 to 2.0 to make sure that all OpenGL 2.0 core functions are initialized. Is this true? Judging from glext, it's true. You'll also need to initialize any OpenGL extension you might to use. Nonetheless, I don't understand why the ARB

Re: [fpc-pascal] How to use OpenGL 2.0 features

2009-05-10 Thread Lord Satan
On Sun, 10 May 2009 18:46:26 +0400 dmitry boyarintsev skalogryz.li...@gmail.com wrote: So it looks like I have to init all OpenGL versions from 1.2 to 2.0 to make sure that all OpenGL 2.0 core functions are initialized. Is this true? Judging from glext, it's true. This makes no sense to me.

Re: [fpc-pascal] How to use OpenGL 2.0 features

2009-05-10 Thread Michalis Kamburelis
Lord Satan wrote: Nonetheless, I don't understand why the ARB version does not work. AFAIK it has the same entry points as the core functionality and OpenGL versions are required to support the ARB version of functions even if the non ARB version is in the core now. No. OpenGL doesn't

Re: [fpc-pascal] How to use OpenGL 2.0 features

2009-05-10 Thread Michalis Kamburelis
Lord Satan wrote: On Sun, 10 May 2009 18:46:26 +0400 dmitry boyarintsev skalogryz.li...@gmail.com wrote: So it looks like I have to init all OpenGL versions from 1.2 to 2.0 to make sure that all OpenGL 2.0 core functions are initialized. Is this true? Judging from glext, it's true. This

Re: [fpc-pascal] How to use OpenGL 2.0 features

2009-05-10 Thread Lord Satan
On Sun, 10 May 2009 22:40:59 +0200 Michalis Kamburelis michalis.ka...@gmail.com wrote: Lord Satan wrote: On Sun, 10 May 2009 18:46:26 +0400 dmitry boyarintsev skalogryz.li...@gmail.com wrote: You mean you want to change Load_GL_version_2_0 to also call Load_GL_version_1_5 under the hood,

Re: [fpc-pascal] How to use OpenGL 2.0 features

2009-05-10 Thread Lord Satan
On Sun, 10 May 2009 23:47:07 +0200 Lord Satan reimg...@web.de wrote: I uploaded the patch to the bug tracker as issue #0013687 S. -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing

Re: [fpc-pascal] How to use OpenGL 2.0 features

2009-05-10 Thread Michalis Kamburelis
Lord Satan wrote: On Sun, 10 May 2009 23:47:07 +0200 Lord Satan reimg...@web.de wrote: I uploaded the patch to the bug tracker as issue #0013687 Looking quickly at the patch, it doesn't seem to set Result values correctly. For example, all Load_GL_version_xxx will always return true, if