[fpc-pascal] how to pass a unicode string pointer in Mac OSX

2009-01-25 Thread Guru Kathiresan
Hello, I'm wondering how to pass a unicode string to a C function in Mac. The C export function has the following definition void function1(wchar_t *str); In windows wchar_t size is 2 so I thought I can pass a WideString type casted with PWideChar. In Mac ,size of wchar_t is 4 in t

Re: [fpc-pascal] Calling C functions from FPC

2009-01-25 Thread Jonas Maebe
On 26 Jan 2009, at 01:24, Ken G. Brown wrote: On MacOS X 10.5.6 Intel targeting 10.3.9 PPC: What are the gotchas with respect to calling C functions from FPC? Mark the external C functions you import in your Pascal code as "cdecl", e.g. procedure cTest; cdecl; external; What other issu

[fpc-pascal] Calling C functions from FPC

2009-01-25 Thread Ken G. Brown
On MacOS X 10.5.6 Intel targeting 10.3.9 PPC: What are the gotchas with respect to calling C functions from FPC? For example if I wanted to be able to make use some of Apple's Serial example code but don't want to go to all the

[fpc-pascal] FPC with Firebird SuperServer

2009-01-25 Thread Andrew Hall
We have been using Mac OS X 10.5 XCode 311, Firebird 211 Classic 32 bit with FPC 224 (which contains the fix for the framework .dylib extension so that libfbclient.dylib can be located). This works with FPC, FlameRobin and RazorSQL. However, reading Firebird's recommendation that unless t

Re: [fpc-pascal] Compiler error

2009-01-25 Thread Vincent Snijders
Vincent Snijders schreef: Michael Van Canneyt schreef: Hm. Hopefully fixed in rev. 12594. Please test. I don't think so: make.exe[3]: Leaving directory `c:/Lazarus/source/fpc/2.3/packages/fpmkunit' make.exe[2]: *** No rule to make target `iconvenc_all', needed by `fcl-xml_all'. Stop. mak

[fpc-pascal] Decimal Precision Issue with Firebird

2009-01-25 Thread Andrew Hall
We are having problems reading decimal/numeric column types with TSQLQuery. It appears if the precision of a decimal/numeric is more than 4 (for instance, DECIMAL(12,8) or DECIMAL(18,10) or DECIMAL(10,6) TSQLQuery raises an exception on reading - EDatabaseError : Unknown field type : COLUM

Re: [fpc-pascal] Compiler error

2009-01-25 Thread Ivo Steinmann
Michael Van Canneyt schrieb: > On Sun, 25 Jan 2009, Vincent Snijders wrote: > > >> Michael Van Canneyt schreef: >> >>> On Sun, 25 Jan 2009, Vincent Snijders wrote: >>> >>> Jonas Maebe schreef: > On 25 Jan 2009, at 11:43, Chris Kirkpatrick wrote: > >

Re: [fpc-pascal] Compiler error

2009-01-25 Thread Vincent Snijders
Michael Van Canneyt schreef: On Sun, 25 Jan 2009, Vincent Snijders wrote: Michael Van Canneyt schreef: Is this a known problem, should I report it as a bug, or am I doing something wrong? How can this error happen ? For fcl-xml, there is no dependency on iconvenc_all for windows targets ? [

Re: [fpc-pascal] Compiler error

2009-01-25 Thread Chris Kirkpatrick
Jonas Maebe wrote: On 25 Jan 2009, at 11:43, Chris Kirkpatrick wrote: I have recently been getting the following error when tring to compile fpc using the standard sequence: svn update fpc make clean make all I tried deleting my complete fpc repository and checking out again; same thing ha

Re: [fpc-pascal] Compiler error

2009-01-25 Thread Michael Van Canneyt
On Sun, 25 Jan 2009, Vincent Snijders wrote: > Michael Van Canneyt schreef: > > > > On Sun, 25 Jan 2009, Vincent Snijders wrote: > > > > > Jonas Maebe schreef: > > > > On 25 Jan 2009, at 11:43, Chris Kirkpatrick wrote: > > > > > > > > > I have recently been getting the following error when tri

Re: [fpc-pascal] Compiler error

2009-01-25 Thread Vincent Snijders
Michael Van Canneyt schreef: On Sun, 25 Jan 2009, Vincent Snijders wrote: Jonas Maebe schreef: On 25 Jan 2009, at 11:43, Chris Kirkpatrick wrote: I have recently been getting the following error when tring to compile fpc using the standard sequence: svn update fpc make clean make all I trie

Re: [fpc-pascal] Compiler error

2009-01-25 Thread Michael Van Canneyt
On Sun, 25 Jan 2009, Vincent Snijders wrote: > Jonas Maebe schreef: > > > > On 25 Jan 2009, at 11:43, Chris Kirkpatrick wrote: > > > > > I have recently been getting the following error when tring to compile fpc > > > using the standard sequence: > > > svn update fpc > > > make clean > > > mak

Re: [fpc-pascal] Compiler error

2009-01-25 Thread Vincent Snijders
Jonas Maebe schreef: On 25 Jan 2009, at 11:43, Chris Kirkpatrick wrote: I have recently been getting the following error when tring to compile fpc using the standard sequence: svn update fpc make clean make all I tried deleting my complete fpc repository and checking out again; same thing ha

Re: [fpc-pascal] EFCreateError' Unable to create file

2009-01-25 Thread Vincent Snijders
vmars schreef: (Lazarus-0.9.26-fpc-2.2.2-win32.exe) winXP sp2 I am trying to SaveToFile a Memo1 to disk. But can't seem to get it to work. Is there a known bug? Try Memo1.Lines.SaveToFile(ExecuteName); Except ShowMessage('Shoots, couldnt SaveToFile!');

Re: [fpc-pascal] EFCreateError' Unable to create file

2009-01-25 Thread Bart
> >Try > >Memo1.Lines.SaveToFile(ExecuteName); > >Except ShowMessage('Shoots, couldnt SaveToFile!'); > >end; > > > > [Project raised exception class 'EFCreateError' with message: > > Unable to create file > > ""C:lazarusfpc2.2.2bini386-win32De

Re: [fpc-pascal] EFCreateError' Unable to create file

2009-01-25 Thread Michael Van Canneyt
On Sat, 24 Jan 2009, vmars wrote: > (Lazarus-0.9.26-fpc-2.2.2-win32.exe) winXP sp2 > I am trying to SaveToFile a Memo1 to disk. > But can't seem to get it to work. > Is there a known bug? > >Try >Memo1.Lines.SaveToFile(ExecuteName); >Except ShowMessage('Shoot

Re: [fpc-pascal] Compiler error

2009-01-25 Thread Jonas Maebe
On 25 Jan 2009, at 11:43, Chris Kirkpatrick wrote: I have recently been getting the following error when tring to compile fpc using the standard sequence: svn update fpc make clean make all I tried deleting my complete fpc repository and checking out again; same thing happened. Currently u

[fpc-pascal] Compiler error

2009-01-25 Thread Chris Kirkpatrick
I have recently been getting the following error when tring to compile fpc using the standard sequence: svn update fpc make clean make all I tried deleting my complete fpc repository and checking out again; same thing happened. Currently using SVN r12590. Is this a known problem, should I repor