Re: [fpc-pascal]How to use Linux libraries?

2003-07-26 Thread Iván Montes
- Original Message - From: "Rainer Hantsch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, July 26, 2003 9:06 AM Subject: Re: [fpc-pascal]How to use Linux libraries? > The better solution will definitely be to convert data inside my application, > because it loads once and t

Re: [fpc-pascal]creating DLL with FPC 1.0.6

2003-02-24 Thread Iván Montes
Sorry guys, I just found out that it doesn't work when using the -ghl compiler option. If I don't use the heap trace unit it does work! Ciao ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal]creating DLL with FPC 1.0.6

2003-02-24 Thread Iván Montes
Hi, I'm having problems using a dll created under Win2k and FPC 1.0.6. library myplugin; uses Windows; function Hello( s :pchar ) :boolean; begin WriteLN('hello ',s); end; exports Hello name 'Hello'; end. This compiles and creates the dll just fine but when I try to load it at runtime I get a

Re: [fpc-pascal]CompareStr

2003-02-13 Thread Iván Montes
Sorry Michael, I just found out that this happens in the 1.0.6 release version of FPC. It's fixed with a current snapshot. Sorry again, Ivan ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]ExtractFileDir ?

2003-02-13 Thread Iván Montes
- Original Message - From: "Anton Tichawa" <[EMAIL PROTECTED]> > So there are two errors: > > 1. I decremented below j, but the programmer had in mind that i was above j. > the while-statement should read 'while (I > J) ..' > > 2. The Copy returns the full string for length 0 - > > Note: I

Re: [fpc-pascal]CompareStr

2003-02-13 Thread Iván Montes
- Original Message - From: "Michael Van Canneyt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 1:59 PM Subject: Re: [fpc-pascal]CompareStr What version are you using ? I have fixed a bug report about this some time ago: Revision 1.1.2.14 2002/11/28 20:1

[fpc-pascal]SysUtils.FileExists bug under Go32v2

2003-02-12 Thread Iván Montes
Hi, I think I've found a bug on the FileExists function (sysutils) under Go32v2, when I want to check if a directory exists. FileExists( 'c:\winnt' ) will return False when compiled for Go32 but true for Win32. I guess that the Win32 version is doing rigth, since a directory is part of the file s

[fpc-pascal]ExtractFileDir ?

2003-02-12 Thread Iván Montes
[OT: Sorry if this was posted before but I'm having some weird problems with email] According to the docs http://www.freepascal.org/docs-html/units/node23.html#SECTION0023660 00 "ExtractFileDir returns only the directory part of FileName, not including a driveletter." But it does ret

[fpc-pascal]test, don't worry, don't reply, remove

2003-02-12 Thread Iván Montes
sorry list just a test ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal]CompareStr

2003-02-12 Thread Iván Montes
Hi, Maybe it's how it's supposed to be but if use : compareStr( 'hello', 'hello-bye' ) I get 0, so they are equal. If one string is bigger than the other they should be different, isn't it? Otherways what can I use to check if two ansistrings are different? TIA, Ivan

[fpc-pascal]ExtractFileDir ?

2003-02-12 Thread Iván Montes
According to the docs http://www.freepascal.org/docs-html/units/node23.html#SECTION0023660 00 "ExtractFileDir returns only the directory part of FileName, not including a driveletter." But it does return the driveletter, so either the docs are mistaken or the RTL. If the docs ar

[fpc-pascal]ExtractFileDir ?

2003-02-12 Thread Iván Montes
According to the docs http://www.freepascal.org/docs-html/units/node23.html#SECTION0023660 00 "ExtractFileDir returns only the directory part of FileName, not including a driveletter." But it does return the driveletter, so either the docs are mistaken or the RTL. If the docs are rig

[fpc-pascal]SysUtils.FileExists bug under Go32v2

2003-02-12 Thread Iván Montes
Hi, I think I've found a bug on the FileExists function (sysutils) under Go32v2, when I want to check if a directory exists. FileExists( 'c:\winnt' ) will return False when compiled for Go32 but true for Win32. I guess that the Win32 version is doing rigth, since a directory is part of the file s

[fpc-pascal]Macros in FPC

2003-02-10 Thread Iván Montes
Hi, I was wondering if I could do something like this with a macro in FPC: const HASH_TABLE_MASK = $ff; function GetHashIndex ( hash :dword) :integer; begin result := hash AND HASH_TABLE_MASK; end; it's kind of a helper funcion so I don't want to perform the function call in the code. Would t

[fpc-pascal]Profiling and memory leaks

2003-02-08 Thread Iván Montes
Hi, Do you know of any tools I can use to check for memory leaks on my code? I'm using FPC 1.1 snapshots under Win2k. cheers, Ivan ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal