What is the main difference between the shortstrings (256 byte) and the ANSI
Strings?
I mean, upon using the Strings, we have plenty of functions, manipulating the
string,
while with ANSIStrings we have certain difficulties obtaining the same result
This is ranging from Pos(), Delete(), String ad
> In Bach, Perl, can do set SDL_VER=`sdl-config --version`
> But in Pascal non have the setenv() procedure as in C :(
> ...
> Actualy I resolve this problem with sending the output to a file, and
> then reading the file.
It sounds to me like you just want a global
variable, not an environment va
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> > Error: Identifier not found "opendir"
> See baseunix.fpreaddir etc in the help.
> Note that it is nearly always better to use the highlevel
> Pascal equivalents findfirst/findnext.
Just be careful calling FindNext recursively on Linux, things can
go haywire if you hit a symlink to '.' or s
A simple question: how do I work with wildcards and "FindPart"
("strutils" unit) function?
If I use
writeln(FindPart('de?','abcdefgh'));
i'll got "4", but if I use
writeln(FindPart('de*','abcdefgh'));
I'll got "0". Why? How can I use the asterisk wildcard?
Thanks a lot!
Claudio
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 .*
_
We are moving from another Pascal compiler where this is
allowed.
--
Type
txt_typ=packed array[0..1] of char;
Const
txt1:txt_typ=('12');
--
Is there a way around this without having to write
txt1:txt_typ=('1','2');
Anoth
I am in the first stage of creating a system unit for
Embedded ARM. Things are working but I get a lot of
Warnings and Hints (Se below).
Should I be worried about this?
In the "fpc_InitializeUnits" procedure I have excluded the call
to the "fpc_cpuinit" procedure, my system cannot start if it is
in
In a message dated 7/7/2005 5:02:07 A.M. Central Daylight Time, Steve Williams writes:
I got
the latest FPC source using Subversion on Win32. Running make build
in the root directory worked fine. Running make install fails
because cp.exe does not ignore hidden directories, therefore
I made this little patch thinking that the default GTK_2_2 define directive
in gtk2.pas is really obsolete looking at the current versions (2.8.x and
2.6.x).
gtk_2.6.x.diff
Description: Binary data
___
fpc-pascal maillist - fpc-pascal@lists.freepascal
> Hello,
>
> I try to write a little article about Pascal-programming under Linux. As I
> now, Kylix, FPC and the GNU Pascal Compiler
Have a look at Lazarus http://www.lazarus.freepascal.org/
Lazarus is for FreePascal what Delphi or Kylix is for TurboPascal.
Hi,
I've been working with FPC 2.0.0 and Dev-Pas
for some GUI efforts and another programmer pointed out an interesting thing,
regarding the LPARAM and WPARAM types. I hope I'm not kicking up old dust,
but for the sake of clarification if we may...
The Microsoft architecture affiliates t
> in linux I can't use the exec for executing a program with more than one
> parameter.
"the exce" ? Which exec? Can you provide an example?
> 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
On Tue, 21 Jun 2005, Antal wrote:
> 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 opti
fpc 2.1.1 (2005/07/24) Darwin
When compiling with -pg (generate profiling data)
linker complains with: /usr/bin/ld: unknown flag: -dynamic-linker=
P Davidson
Corax Networks Inc.
http://CoraxNetworks.com
IMPORTANT NOTICE: This message is intended only for the use of the individual or entity to
Hi,
just trying to build fpc (today snapshot 2.1.X) for win32 plateform and
wince arm target.
i get the following error message ?
D:\FPC\2.1.x-src>make all OPT=-vt CPU_TARGET=arm OS_TARGET=wince
CROSSBINDIR=d:\
fpc\cross\arm-wince BINUTILSPREFIX=arm-wince-
INSTALL_PREFIX=d:\FPC\2.1.X >d:\
I can't see even "Hello World".
After downloading from the "download" corner,installing to my h/d, what
shall I do next ? I can't understand at all. I can't find out on any
document to set up after installing.
" Only type fpc" can't lead me to even " Hello World".
I do hope the script file
Trying to get fpGetRusage to work.
Using: function fpGetRUsage( who : cint; data : pRUsage ) : cint; cdecl; external 'c' name 'getrusage';
But this gives silly results. Any hints?
P Davidson
Corax Networks Inc.
http://CoraxNetworks.com
IMPORTANT NOTICE: This message is intended only for the
(Oops)
Trying to get fpGetRusage to work WITH DARWIN.
Using: function fpGetRUsage( who : cint; data : pRUsage ) : cint; cdecl; external 'c' name 'getrusage';
But this gives silly results. Any hints?
P Davidson
Corax Networks Inc.
http://CoraxNetworks.com
IMPORTANT NOTICE: This message is in
Hi everybody,
I need to pass two- or three-dimensional dynamic arrays to C libraries from
FPC. I know this is feasible with one-dimensional arrays, by using a pointer
to the array: for instance
---code
type
PDouble = ^Double;
function get_array(a, b: PDouble; size: integer; value: double):
i
On Tue, 14 Jun 2005 [EMAIL PROTECTED] wrote:
> What is the main difference between the shortstrings (256 byte) and the ANSI
> Strings?
Shortstrings are on the stack, and have the length stored in the 0-th byte.
AnsiStrings are on the heap, and have their length stored somewhere hidden.
Ansistr
Please ignore this. It is an FPC mailing list error, repeated from August
- Original Message -
From: "Urbansound" <[EMAIL PROTECTED]>
To:
Cc: "Matt Emson" <[EMAIL PROTECTED]>
Sent: Tuesday, August 02, 2005 1:41 PM
Subject: Re: [fpc-pascal] Extended float to single and pchar types
On Tue, 16 Aug 2005, Urbansound wrote:
> Hi,
>
> I've been working with FPC 2.0.0 and Dev-Pas for some GUI efforts and another
> programmer pointed out an interesting thing, regarding the LPARAM and WPARAM
> types. I hope I'm not kicking up old dust, but for the sake of clarification
> if w
Please ignore this. FPC has generated this as
an error. This is an old discussion from August
- Original Message -
From:
Urbansound
To: fpc-pascal@lists.freepascal.org
Sent: Tuesday, August 16, 2005 9:25
PM
Subject: [fpc-pascal] Windows Type
LPARAM, WPARAM
On Fri, 15 Jul 2005, Silvio a Beccara wrote:
> Hi everybody,
>
> I need to pass two- or three-dimensional dynamic arrays to C libraries from
> FPC. I know this is feasible with one-dimensional arrays, by using a pointer
> to the array: for instance
>
> ---code
> type
> PDouble = ^Double;
>
26 matches
Mail list logo