Re: [fpc-pascal] Typed file problem.

2005-06-22 Thread Inpromptu
Problem solved ! Thank you very much ! > > Inpromptu wrote: > > I've found the problem... ! > > > > if the record is Myrecord=record > > MyInteger:integer; > > Mystring:string; > > end; > > > > compiled with c:\lazarus\pp\bin\i386-bin\ppc386 without any other > > p

Re: [fpc-pascal] Typed file problem.

2005-06-22 Thread Michalis Kamburelis
Inpromptu wrote: I've found the problem... ! if the record is Myrecord=record MyInteger:integer; Mystring:string; end; compiled with c:\lazarus\pp\bin\i386-bin\ppc386 without any other parameter, sizeof(Myrecord.Myinteger) shows 2. compiled inside Lazarus sizeof(

Re: [fpc-pascal] Typed file problem.

2005-06-22 Thread Inpromptu
I've found the problem... ! if the record is Myrecord=record MyInteger:integer; Mystring:string; end; compiled with c:\lazarus\pp\bin\i386-bin\ppc386 without any other parameter, sizeof(Myrecord.Myinteger) shows 2. compiled inside Lazarus sizeof(Myrecord.Myinteger)

Re: [fpc-pascal] Typed file problem.

2005-06-22 Thread Michalis Kamburelis
Inpromptu wrote: [...] Are you sure that exactly the same definition of TSomeType is used when you compile GUI and console version of your program ? Maybe some structures are aligned differently when you compile GUI and console version of your program ? Are you sure that the unit where TSom

Re: [fpc-pascal] Typed file problem.

2005-06-22 Thread Inpromptu
> First of all, Lazarus and GUI/non-GUI difference has nothing to do > here. Lazarus allows you to compile non-GUI programs without any > problems, if you want. Of course, the same compiler and the same > RTL is used to compile GUI (i.e. LCL) and console programs. Ok ! > > As far as I unders

Re: [fpc-pascal] Typed file problem.

2005-06-22 Thread Michalis Kamburelis
Inpromptu wrote: Hi. I have developed a console app, wich use a typed file. I use Lazarus to make the GUI, but there is some problem with the typed file generated by the console app. The GUI app does not read the file correctly. Specially with the string vars. Is it a problem with the delphi

[fpc-pascal] Typed file problem.

2005-06-22 Thread Inpromptu
Hi. I have developed a console app, wich use a typed file. I use Lazarus to make the GUI, but there is some problem with the typed file generated by the console app. The GUI app does not read the file correctly. Specially with the string vars. Is it a problem with the delphi mode compilation

Re: [fpc-pascal] DLL Linking

2005-06-22 Thread Michalis Kamburelis
L505 wrote: | C:\Documents and Settings\\Application Data\\ | | Or sometimes, if the installer is set up for it: | | C:\Documents and Settings\All Users\Application Data\\ Yuck, and since there is no "documents and settings" directory on Linux, it's not a cross platform way of building apps. Of

Re: [fpc-pascal] exec with many params

2005-06-22 Thread Peter Vreman
> in linux I can't use the exec for executing a program with more than one > parameter. > I tried to supply more than a parameter separeted with whitespace, but > it's not reliable, since the program is treating it as just one parameter > > so I can't pass options to programs, such as: > ls -l .*

[fpc-pascal] exec with many params

2005-06-22 Thread Antal
in linux I can't use the exec for executing a program with more than one parameter. I tried to supply more than a parameter separeted with whitespace, but it's not reliable, since the program is treating it as just one parameter so I can't pass options to programs, such as: ls -l .* _