Re: [fpc-pascal] Embedding a Video Player into a Linux/FP/GTK2 Application ?

2008-06-23 Thread Andrew Haines
Michael Van Canneyt wrote: > > Would it be OK to include the xine unit in fpc ? > It's not even close to complete, I only did just enough to make the program work. You can add it if you want, maybe some people will submit patches to complete it. If it's possible to change the license go ahead,

Re: [fpc-pascal] SysLocale.PriLangID vs Mac OS X localization

2008-06-23 Thread Jonas Maebe
On 23 Jun 2008, at 18:00, Michael Van Canneyt wrote: On Mon, 23 Jun 2008, Jonas Maebe wrote: On 23 Jun 2008, at 10:41, Bent Normann Olsen wrote: Yup, I know, but it's a 1-1 port from Win32 to Mac, That's really a very bad idea, unless you are only interested in supporting Windows users

Re: [fpc-pascal] SysLocale.PriLangID vs Mac OS X localization

2008-06-23 Thread Graeme Geldenhuys
2008/6/23 Michael Van Canneyt <[EMAIL PROTECTED]>: > > So what do Mac users do with all these web-applications and "web 2.0" with > their other GUI rules ? Start crying ? Best example yet! :-) I really find these "native look and feel" debates pointless. Users are *not* that observant. And don't

Re: [fpc-pascal] SysLocale.PriLangID vs Mac OS X localization

2008-06-23 Thread Joost van der Sluis
Op maandag 23-06-2008 om 18:00 uur [tijdzone +0200], schreef Michael Van Canneyt: > > So what do Mac users do with all these web-applications and "web 2.0" > with their other GUI rules ? The same as windows and linux users... > Start crying ? Indeed. :) Joost.

Re: [fpc-pascal] SysLocale.PriLangID vs Mac OS X localization

2008-06-23 Thread Michael Van Canneyt
On Mon, 23 Jun 2008, Jonas Maebe wrote: > > On 23 Jun 2008, at 10:41, Bent Normann Olsen wrote: > > >Yup, I know, but it's a 1-1 port from Win32 to Mac, > > That's really a very bad idea, unless you are only interested in supporting > Windows users switching to a Mac (although even for them t

[fpc-pascal] Re: Window Ports

2008-06-23 Thread Richard Ward
Jonas writes: That's really a very bad idea, unless you are only interested in supporting Windows users switching to a Mac (although even for them the application will feel weird after a while). I will second this opinion as last week, I was trying to find a 2D drawing program with

RE: [fpc-pascal] SysLocale.PriLangID vs Mac OS X localization

2008-06-23 Thread Bent Normann Olsen
> var >langArray: CFArrayRef; > begin > > langArray > :=CFArrayRef(CFPreferencesCopyAppValue(CFSTR('AppleLanguages'), > kCFPreferencesCurrentApplication)) > end; > > Then use CFArrayGetCount to get the number of elements in the array, > CFArrayGetValueAtIndex to get the actual values (they ar

Re: [fpc-pascal] freepascal + mysql5 + osx

2008-06-23 Thread Joost van der Sluis
Op maandag 23-06-2008 om 11:33 uur [tijdzone +0200], schreef Jonas Maebe: > On 23 Jun 2008, at 11:28, Joost van der Sluis wrote: > > > In the case of Firebird there are two possible names of the library, > > and > > both are tried. Can I safely add the {$linklib ...} statements for > > both >

Re: [fpc-pascal] freepascal + mysql5 + osx

2008-06-23 Thread Jonas Maebe
On 23 Jun 2008, at 11:28, Joost van der Sluis wrote: In the case of Firebird there are two possible names of the library, and both are tried. Can I safely add the {$linklib ...} statements for both libraries, even if one of them doesn't exist on the system? No. But you don't need {$linkli

Re: [fpc-pascal] freepascal + mysql5 + osx

2008-06-23 Thread Joost van der Sluis
Op zondag 22-06-2008 om 20:41 uur [tijdzone +0200], schreef Jonas Maebe: > On 22 Jun 2008, at 20:31, Florian Klaempfl wrote: > > > Jonas Maebe schrieb: > >> Add the following to your program: > >> {$linklib mysql50} > >> The reason that this is not necessary on other platforms, is that > >> they

Re: [fpc-pascal] memory management with open arrays and classes

2008-06-23 Thread Joost van der Sluis
Op zaterdag 21-06-2008 om 19:23 uur [tijdzone -0700], schreef David Emerson: > I'm pretty new to both "open arrays" and OOP, and am feeling a bit > concerned about memory management and leaks in my code. I will jump > straight into examples and questions: I think you can find all this in the do

Re: [fpc-pascal] SysLocale.PriLangID vs Mac OS X localization

2008-06-23 Thread Jonas Maebe
On 23 Jun 2008, at 10:41, Bent Normann Olsen wrote: Yup, I know, but it's a 1-1 port from Win32 to Mac, That's really a very bad idea, unless you are only interested in supporting Windows users switching to a Mac (although even for them the application will feel weird after a while). a

Re: [fpc-pascal] freepascal + mysql5 + osx

2008-06-23 Thread Harald Lapp
2008/6/23 Jonas Maebe <[EMAIL PROTECTED]>: > > On 23 Jun 2008, at 08:47, Harald Lapp wrote: > >> 2008/6/22 Jonas Maebe <[EMAIL PROTECTED]>: >>> >> >>> Add the following to your program: >>> >>> {$linklib mysql50} >>> >>> The reason that this is not necessary on other platforms, is that they >>> imp

Re: [fpc-pascal] Embedding a Video Player into a Linux/FP/GTK2 Application ?

2008-06-23 Thread Joost van der Sluis
Op maandag 23-06-2008 om 09:42 uur [tijdzone +0200], schreef Michael Van Canneyt: > > On Sun, 22 Jun 2008, Andrew Haines wrote: > > > Henry Vermaak wrote: > > > 2008/6/21 Graeme Geldenhuys <[EMAIL PROTECTED]>: > > >> 2008/6/20 Henry Vermaak <[EMAIL PROTECTED]>: > > >>> mplayer has a -wid option t

RE: [fpc-pascal] SysLocale.PriLangID vs Mac OS X localization

2008-06-23 Thread Bent Normann Olsen
> > All I need is to retrieve a kind of ID for a users language setting, > > in the > > same way as we would do in Win32 environment with Syslocale and > > PriLangID. > > It is usually a very bad idea to try to literally port APIs from one > platform to another and disregarding platform convention

[fpc-pascal] Shared library with resources which contain bitmaps on Linux

2008-06-23 Thread Roland Turcan
Hello FPC-Pascal users discussions! How can I build a shared library which contains many bitmaps loaded dynamically from the code using by: procedure TForm1.Button1Click(Sender: TObject); CONST MYRES_DLL='./libmyres.so'; begin FhMod := LoadLibrary (PCHAR (MYRES_DLL)); IF FhMod = 0 THEN b

Re: [fpc-pascal] freepascal + mysql5 + osx

2008-06-23 Thread Jonas Maebe
On 23 Jun 2008, at 08:47, Harald Lapp wrote: 2008/6/22 Jonas Maebe <[EMAIL PROTECTED]>: Add the following to your program: {$linklib mysql50} The reason that this is not necessary on other platforms, is that they implicitly add that based on the external declarations. This was disabl

Re: [fpc-pascal] Embedding a Video Player into a Linux/FP/GTK2 Application ?

2008-06-23 Thread Michael Van Canneyt
On Sun, 22 Jun 2008, Andrew Haines wrote: > Henry Vermaak wrote: > > 2008/6/21 Graeme Geldenhuys <[EMAIL PROTECTED]>: > >> 2008/6/20 Henry Vermaak <[EMAIL PROTECTED]>: > >>> mplayer has a -wid option that takes a window id in which to embed > >>> itself. i haven't tried this, though. > >> Wow!!

[fpc-pascal] teaching material[help]

2008-06-23 Thread Galloplus Chang
Hello, I'm a student form China,and I'm helping my CS teacher teach those Juniors Free Pascal.So, is there recommendation on what book or guide is better to follow? I need books on : Modern Computer Structures Basic Algorithms the Ansi or standard Pascal language I'm appreciating