On 04 Jan 2009, at 02:34, T.Guilleminot wrote:
> 2.2.x or 2.3.x?
I used the 2.2.0 (provided by Ubuntu repositories).
Then I just upgraded and tested in 2.2.2-8 but problem is still the
same :(
Please provide a compilable program that demonstrates the problem.
Jonas
__
each "union" is a separate case for pascal. another thing is that the
structure is quite agly and does not reveale the logicals usage.
The problem is that pascal does not allow you to use multiple cases in
single record, that would require you to declare additional types.
_PFColorSize = record
On Sun, 04 Jan 2009 05:25:40 -0500, Joost van der Sluis
wrote:
Op zaterdag 03-01-2009 om 19:04 uur [tijdzone -0500], schreef Jeremy
Cowgar:
myObj.ColumnNames := [ 'Id', 'Name', 'Age' ];
Error: Ordinal expression expected
A list of values between square brackets are a set, not an arra
procedure Run_Command_Wait(TheCommand : string); cdecl;
This 'string' is of the type shortstring, and thus will truncate your
string to 255 characters.
Change it in ansistring or add {$H+} to the beginning of your program.
I would advice to declare "TheCommand : AnsiString" instead of changing
Joost van der Sluis wrote:
> Op maandag 22-12-2008 om 23:17 uur [tijdzone +], schreef Andrea:
>> Joost van der Sluis wrote:
>>> Op zondag 21-12-2008 om 17:29 uur [tijdzone +], schreef Andrea:
>>>
>> Apparently it cannot work due to some incompatibility with gdb-6.8
>
> There is a reason I
Jonas Maebe wrote:
>
> On 04 Jan 2009, at 16:51, Andrea wrote:
>
>> My gdb is version 6.8, on your link I can only find 6.2.1
>> Will that be a problem when it runs?
>
> No: libgdb.a basically contains a complete gdb implementation in that
> library, and the IDE will use that. It's not an interf
Op zaterdag 03-01-2009 om 19:04 uur [tijdzone -0500], schreef Jeremy
Cowgar:
> myObj.ColumnNames := [ 'Id', 'Name', 'Age' ];
> Error: Ordinal expression expected
A list of values between square brackets are a set, not an array.
You'll have to do:
AnArray[0] := 'Id';
anArray[1] := 'Na
Thanks ! Changing "TheCommand" to ansistring seems work !
Did not think about this simple thing.
I'm testing more deeply. Thanks again.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Please provide a compilable program that demonstrates the problem.
Jonas
Create a myini.ini file containing :
[TEST]
CMD_OK=echo 'Hello !'
CMD_NOT_OK=mencoder dvb://M6 -sws 9 -of lavf -lavfopts format=mp4 -vf
scale=480:320,dsize=480:320,harddup -ovc x264 -x264encopts
bitrate=500:vbv_maxr
Hello,
I'm trying to convert c header code from "Windows Mobile API 5" to
pascal and I'm getting wrong size of converted record:
original c header:
typedef struct _DDPIXELFORMAT
{
DWORD dwSize;
DWORD dwFlags;
DWORD dwFourCC;
union
{
DWORD dwRGBB
On 04 Jan 2009, at 16:51, Andrea wrote:
My gdb is version 6.8, on your link I can only find 6.2.1
Will that be a problem when it runs?
No: libgdb.a basically contains a complete gdb implementation in that
library, and the IDE will use that. It's not an interface to your
system-installed g
In our previous episode, Jonas Maebe said:
> > > 2.2.x or 2.3.x?
> >
> > I used the 2.2.0 (provided by Ubuntu repositories).
> > Then I just upgraded and tested in 2.2.2-8 but problem is still the
> > same :(
>
> Please provide a compilable program that demonstrates the problem.
(Jonas: I asked
Op zondag 04-01-2009 om 15:51 uur [tijdzone +], schreef Andrea:
> Joost van der Sluis wrote:
> > Op maandag 22-12-2008 om 23:17 uur [tijdzone +], schreef Andrea:
> >> Joost van der Sluis wrote:
> >>> Op zondag 21-12-2008 om 17:29 uur [tijdzone +], schreef Andrea:
> >>>
> >> Apparently i
Op zondag 04-01-2009 om 12:31 uur [tijdzone +0100], schreef
T.Guilleminot:
> procedure Run_Command_Wait(TheCommand : string); cdecl;
This 'string' is of the type shortstring, and thus will truncate your
string to 255 characters.
Change it in ansistring or add {$H+} to the beginning of your progra
On 03 Jan 2009, at 12:54, gabor wrote:
I'm trying to convert c header code from "Windows Mobile API 5" to
pascal and I'm getting wrong size of converted record:
original c header:
typedef struct _DDPIXELFORMAT
{
DWORDdwSize;
DWORDdwFlags;
DWORDdwFourCC;
u
1)
type
StringArray : array of String;
defines a StringArray type to be dynamic array.
are you sure, that you have SetColumnNames defined as
procedure SetColumnNames(names : StringArray);
rather than:
procedure SetColumnNames(names : array of string);
???
because if you have
procedure SetColum
dmitry boyarintsev wrote:
1)
type
StringArray : array of String;
defines a StringArray type to be dynamic array.
are you sure, that you have SetColumnNames defined as
procedure SetColumnNames(names : StringArray);
rather than:
procedure SetColumnNames(names : array of string);
???
Hm, you
I just finished taking compiler techniques class this semester and I'd like
to write my own based on the one used in the class. The class uses Java with
JLex and JavaCUP, but I don't really like Java and I want to rewrite it in
FP. However, there are some choices for writing the scanner and parser
18 matches
Mail list logo