RE: [fpc-pascal] using static linking of dylib in mac 10.5

2008-10-21 Thread Guru Kathiresan
Hi, Thanks for the reply. That seems to work, but I think there is a bug in the FPC. When I do a {$linklib myfile.dylib} , it is not picking up the myfile.dylib, the compiler is looking for libmyfile.so . I had to rename the library from myfile.dylib to libmyfile.so . -Guru Kathiresan > -Orig

Re: [fpc-pascal] FPC_HAS_FEATURE_SUPPORT

2008-10-21 Thread Vasil
Hello, Mattias Friday, October 17, 2008, 10:57:37 PM, you wrote: > Can someone explain the new FPC source layout? > I find out so far: > In rtl/inc/systemh.inc there is > {$ifndef FPC_HAS_FEATURE_SUPPORT} > ... > {$define FPC_HAS_FEATURE_CLASSES} > ... > {$ENDIF} > Because FPC 2.3.1 defines FP

Re: [fpc-pascal] Delphi / FPC and UTF8 BOM

2008-10-21 Thread Jonas Maebe
On 21 Oct 2008, at 18:20, Zaher Dirkey wrote: Is that mean when i want to compile my project to UTF-8 (or Unicode), that mean must change my variables to widestring, A:string to A:widestring (i remember old discuss somewhere about this), is there a string type switched between two types when i

Re: [fpc-pascal] Delphi / FPC and UTF8 BOM

2008-10-21 Thread Jonas Maebe
On 21 Oct 2008, at 19:29, Felipe Monteiro de Carvalho wrote: There has been a lot of discussion about this problem. What happens is that FPC wishes to always have ansistrings holding system locale encoded strings, it's impossible to have strings which store utf-8 data as far as FPC is concerned

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-21 Thread Marco van de Voort
In our previous episode, Felipe Monteiro de Carvalho said: > > I can run windows from VM.. just have no idea what to use to open a chm. > > You just double click the chm. It's the standard Windows help system > in Windows XP+ (maybe older too). IIRC it dates back to win98, and even works on win9

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-21 Thread Felipe Monteiro de Carvalho
On Tue, Oct 21, 2008 at 4:04 PM, Francisco Reyes <[EMAIL PROTECTED]> wrote: > I can run windows from VM.. just have no idea what to use to open a chm. You just double click the chm. It's the standard Windows help system in Windows XP+ (maybe older too). -- Felipe Monteiro de Carvalho __

Re: [fpc-pascal] Delphi / FPC and UTF8 BOM

2008-10-21 Thread Zaher Dirkey
What for {%encoding utf-8} in the first line? On Tue, Oct 21, 2008 at 8:08 PM, Zaher Dirkey <[EMAIL PROTECTED]> wrote: > When i started to build my projects for unicode, i expect it is like > {$h-} {$h+} when we moved from Turbo Pascal to Delphi. > > BTW my agent ask me to make my project multi

Re: [fpc-pascal] Delphi / FPC and UTF8 BOM

2008-10-21 Thread Zaher Dirkey
When i started to build my projects for unicode, i expect it is like {$h-} {$h+} when we moved from Turbo Pascal to Delphi. BTW my agent ask me to make my project multi language and that solve my problem, but for small projects already made for Ansi we need that feature. _

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-21 Thread Francisco Reyes
Felipe Monteiro de Carvalho writes: Ok, I took a look at this, to have pdf support one needs to buy the professional version of Doc-o-Matic I can run windows from VM.. just have no idea what to use to open a chm. I will just convert to PDF. Have been sick since friday so did not get a chance

Re: [fpc-pascal] Delphi / FPC and UTF8 BOM

2008-10-21 Thread Felipe Monteiro de Carvalho
> To share code at the moment I do a IFDEF. If in Delphi, then I convert > the string from utf-8 to ansi and I don't use the BOM. Ah, by the way, the solution may be more permanent then one imagines, because there is no guarantee that the new type will solve anything for Lazarus, and one of the ma

Re: [fpc-pascal] Delphi / FPC and UTF8 BOM

2008-10-21 Thread Felipe Monteiro de Carvalho
There has been a lot of discussion about this problem. What happens is that FPC wishes to always have ansistrings holding system locale encoded strings, it's impossible to have strings which store utf-8 data as far as FPC is concerned. In Lazarus we consider that the best solution is storing utf-8

Re: [fpc-pascal] Delphi / FPC and UTF8 BOM

2008-10-21 Thread Zaher Dirkey
>> 2- If i put {$codepage utf-8} in my unit and i have string A variable, >> that variable will be widestring and any ansistring assigned to it >> will converted to it? > > No, A will be a shortstring (in {$h-} mode) or ansistring (in {$h+} mode). > Only *constant* strings containing non-ASCII char

Re: [fpc-pascal] Delphi / FPC and UTF8 BOM

2008-10-21 Thread Jonas Maebe
On 21 Oct 2008, at 17:37, Zaher Dirkey wrote: Thanks for your answers, and just another few questions :) 1- Is "fpc -FcUTF-8" same as {$codepage utf-8}? Yes. 2- If i put {$codepage utf-8} in my unit and i have string A variable, that variable will be widestring and any ansistring assi

Re: [fpc-pascal] Delphi / FPC and UTF8 BOM

2008-10-21 Thread Zaher Dirkey
Thanks for your answers, and just another few questions :) 1- Is "fpc -FcUTF-8" same as {$codepage utf-8}? 2- If i put {$codepage utf-8} in my unit and i have string A variable, that variable will be widestring and any ansistring assigned to it will converted to it? 3- if i has another unit

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-21 Thread Marco van de Voort
In our previous episode, Felipe Monteiro de Carvalho said: > On Tue, Oct 21, 2008 at 11:28 AM, Marco van de Voort <[EMAIL PROTECTED]> > wrote: > > If not, the comments in the sources reduce to warn for gotcha's and other > > notes, that might not belong in the docs at all. I don't see duplication

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-21 Thread Felipe Monteiro de Carvalho
On Tue, Oct 21, 2008 at 11:28 AM, Marco van de Voort <[EMAIL PROTECTED]> wrote: > If not, the comments in the sources reduce to warn for gotcha's and other > notes, that might not belong in the docs at all. I don't see duplication a > problem if they have two separate purposes. Or better: then it i

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-21 Thread Felipe Monteiro de Carvalho
On Tue, Oct 21, 2008 at 11:17 AM, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > Comments in source are generally limited to one or 2 lines. > This is OK for docs that only you yourself need. Only if you don't prepare them to be a documentation. > The sources would become totally unreadable if

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-21 Thread Marco van de Voort
In our previous episode, Felipe Monteiro de Carvalho said: > > I'm not that fond of in-source docs. It has a certain principal appeal > > (maintaining both together), but I don't like the practice. Or at least the > > ones that I have seen. > > I find that the external documentation imposes a too

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-21 Thread Michael Van Canneyt
On Tue, 21 Oct 2008, Felipe Monteiro de Carvalho wrote: > On Tue, Oct 21, 2008 at 10:45 AM, Marco van de Voort <[EMAIL PROTECTED]> > wrote: > > I already noticed, yes. Can you choose between in and out of source > > documentation with Doc-O-Matic, or is it always in source? > > It supports ou

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-21 Thread Michael Van Canneyt
On Tue, 21 Oct 2008, Marco van de Voort wrote: > In our previous episode, Michael Van Canneyt said: > > > > That's an implementation detail, but doesn't make PDFs a priori > > > > unsuitable > > > > as help format. > > > > > > Well, let's keep this limited to FPC context, and the foreseeable f

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-21 Thread Felipe Monteiro de Carvalho
On Tue, Oct 21, 2008 at 10:45 AM, Marco van de Voort <[EMAIL PROTECTED]> wrote: > I already noticed, yes. Can you choose between in and out of source > documentation with Doc-O-Matic, or is it always in source? It supports out of source documentation, but not in the Express (zero cost) edition:

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-21 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > On 10/20/08, Francisco Reyes <[EMAIL PROTECTED]> wrote: > > Also, any plans to have the help in anything other than chm? > > I found some viewers/converters, so I think I will be able to open it or > > convert it, but would be nice if there was s

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-21 Thread Marco van de Voort
In our previous episode, Felipe Monteiro de Carvalho said: > > The document generator already generates PDFs? The problem with PDFS is that > > while these are great as reference, they are (IMHO) in the current setting > > not usable as help system. > > I am not using the Free Pascal documentation

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-21 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > > > That's an implementation detail, but doesn't make PDFs a priori unsuitable > > > as help format. > > > > Well, let's keep this limited to FPC context, and the foreseeable future. > > And include the textmode IDE. > > Your ship sinks on the

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-21 Thread Graeme Geldenhuys
On 10/20/08, Francisco Reyes <[EMAIL PROTECTED]> wrote: > Also, any plans to have the help in anything other than chm? > I found some viewers/converters, so I think I will be able to open it or > convert it, but would be nice if there was something other than chm. If I > get to conver it, should

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-21 Thread Felipe Monteiro de Carvalho
> The document generator already generates PDFs? The problem with PDFS is that > while these are great as reference, they are (IMHO) in the current setting > not usable as help system. I am not using the Free Pascal documentation tool. I am using documentation taken from comments in the source cod

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-21 Thread Felipe Monteiro de Carvalho
On Mon, Oct 20, 2008 at 1:26 AM, Francisco Reyes <[EMAIL PROTECTED]> wrote: > Also, any plans to have the help in anything other than chm? > I found some viewers/converters, so I think I will be able to open it or > convert it, but would be nice if there was something other than chm. If I > get to

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-21 Thread Felipe Monteiro de Carvalho
On Mon, Oct 20, 2008 at 1:26 AM, Francisco Reyes <[EMAIL PROTECTED]> wrote: > Based on your schedule when do you think you may get the opendocument format > or the Excel 5 working under Linux/FreeBSD? No idea. If you try to implement it, I could help you and that would certainly motivate me more t