Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Tomas Hajny
On Wed, September 9, 2009 08:35, Graeme Geldenhuys wrote: > Tomas Hajny het geskryf: >> interesting/better than CHM nowadays (except for the fact that I'm not >> aware of a CHM viewer for OS/2, which is an important downside for me > > Doesn't the 'lhelp' project, which is included with Lazarus IDE

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Graeme Geldenhuys
Tomas Hajny het geskryf: > interesting/better than CHM nowadays (except for the fact that I'm not > aware of a CHM viewer for OS/2, which is an important downside for me Doesn't the 'lhelp' project, which is included with Lazarus IDE, compile under OS/2? Then again, does Lazarus actually run unde

Re: [fpc-pascal] GetThreadId, GetCurrentThreadId and MainThreadId

2009-09-08 Thread Vincent Snijders
JoshyFun schreef: Hello FPC-Pascal, Tuesday, September 8, 2009, 2:02:46 PM, you wrote: VS> If cthreads is used, I get the following output: VS> GetThreadID=3084795456 VS> GetCurrentThreadID=3085236992 VS> MainThreadID=3085236992 VS> 4. What is the difference between GetThreadID and VS> GetCurr

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Marco van de Voort
In our previous episode, Vincent Snijders said: > Marco van de Voort schreef: > > In our previous episode, Tomas Hajny said: > aware of a CHM viewer for OS/2, which is an important downside for me > personally, of course ;-) ). > >>> Then fix the textmode IDE for OS/2 :-) > >> Would it st

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Vincent Snijders
Marco van de Voort schreef: In our previous episode, Tomas Hajny said: aware of a CHM viewer for OS/2, which is an important downside for me personally, of course ;-) ). Then fix the textmode IDE for OS/2 :-) Would it start working as a general CHM viewer then (including e.g. display of embedd

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Marco van de Voort
In our previous episode, Tomas Hajny said: > >> aware of a CHM viewer for OS/2, which is an important downside for me > >> personally, of course ;-) ). > > > > Then fix the textmode IDE for OS/2 :-) > > Would it start working as a general CHM viewer then (including e.g. > display of embedded pictu

Re: [fpc-pascal] Is it possible to create COM server with fpc?

2009-09-08 Thread Corrado Valeri
> I shaw in the FPC future plan for Version 2.4 has a item: > -- >       Support for DispInterface and dispid (OLE binding on Windows). > -- > is this near to COM? Yes it is. But I'm waiting for most value comments of any FPC developers: teorically if FPC supports i

Re: [fpc-pascal] GetThreadId, GetCurrentThreadId and MainThreadId

2009-09-08 Thread JoshyFun
Hello FPC-Pascal, Tuesday, September 8, 2009, 2:02:46 PM, you wrote: VS> If cthreads is used, I get the following output: VS> GetThreadID=3084795456 VS> GetCurrentThreadID=3085236992 VS> MainThreadID=3085236992 VS> 4. What is the difference between GetThreadID and VS> GetCurrentThreadID? This co

Re: [fpc-pascal] Is it possible to create COM server with fpc?

2009-09-08 Thread yu ping
Thanks for reply, in fact,I'm interest in OPC programming, which based on COM tech on windows. Just think it would be best if can implement it in FPC. I shaw in the FPC future plan for Version 2.4 has a item: -- Support for DispInterface and dispid (OLE binding on Windows).

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Tomas Hajny
On Tue, September 8, 2009 17:05, Marco van de Voort wrote: > In our previous episode, Tomas Hajny said: >> >> (NewView) implemented in Object Pascal (I think it's Free Pascal >> >> Compiler compatible). >> > >> > Don't forget licensing issues. Also keep in mind that portable editors >> and >> > gen

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Tomas Hajny
On Tue, September 8, 2009 15:04, Graeme Geldenhuys wrote: > Tomas Hajny het geskryf: >> I'm not aware of any IPF compiler apart from that one produced by IBM >> and > > Actually Lawrence Haynes, from the Open Watcom project re-engineered a > clean-room implementation for the Open Watcom project. It

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Marco van de Voort
In our previous episode, Tomas Hajny said: > >> (NewView) implemented in Object Pascal (I think it's Free Pascal > >> Compiler compatible). > > > > Don't forget licensing issues. Also keep in mind that portable editors and > > generators for HTML are plenty. What about .INF? Is there a Latex2inf? >

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Tomas Hajny
On Tue, September 8, 2009 15:07, Marco van de Voort wrote: > In our previous episode, Graeme Geldenhuys said: >> Marco van de Voort het geskryf: . . >> PS #2: >> I found the source code for Sibyl IDE which contains a GUI help viewer >> (NewView) implemented in Object Pascal (I think it's Free Pas

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Graeme Geldenhuys
Marco van de Voort het geskryf: > > That's something that CHM does too, and nearly any format. I'm talking about > when you press F1 in the IDE and those indexes must be combined in the IDE, With OS/2's help viewer I can do the following... view.exe lcl.inf rtl.inf fcl.inf It will then combin

Re: [fpc-pascal] Is it possible to create COM server with fpc?

2009-09-08 Thread Corrado Valeri
2009/9/8 yu ping > > Has anyone tried to implement a COM server with FPC?(on windows) > ___ I think that couldn't be possible: COM is a proprietary techonolgy of Microsoft used in windows platform, with a crossplatform compiler like FPC would be impossi

[fpc-pascal] Is it possible to create COM server with fpc?

2009-09-08 Thread yu ping
Has anyone tried to implement a COM server with FPC?(on windows) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > Marco van de Voort het geskryf: > > > > Or maybe because it cached the search index to disk, like most helpfiles. > > As far as I can see, from reading various INF docs is that the IFP > Compiler generates the index and keywords at compile-time a

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Graeme Geldenhuys
Tomas Hajny het geskryf: > I'm not aware of any IPF compiler apart from that one produced by IBM and Actually Lawrence Haynes, from the Open Watcom project re-engineered a clean-room implementation for the Open Watcom project. It is called 'wipfc' and source code is available. There now exists nat

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Graeme Geldenhuys
Michael Van Canneyt het geskryf: > > I suppose you'd need the INF specs in order to make a compiler for it. The spec was never released by IBM as far as I know. But I see the Open Watcom project (actually one guy only - Lawrence Haynes) reverse engineered the IPFC compiler and rewrote a clean-roo

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Graeme Geldenhuys
Marco van de Voort het geskryf: > > Or maybe because it cached the search index to disk, like most helpfiles. As far as I can see, from reading various INF docs is that the IFP Compiler generates the index and keywords at compile-time and are built into the single .INF files. Also every single wo

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Tomas Hajny
On Tue, September 8, 2009 13:35, Marco van de Voort wrote: > In our previous episode, Graeme Geldenhuys said: >> I'm been doing some reading on various help file format - to be used in >> my applications and possible Lazarus IDE. From my OS/2 2.1 and OS/2 Warp >> days I remember the INF help was ve

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Tomas Hajny
On Tue, September 8, 2009 12:07, Michael Van Canneyt wrote: > On Tue, 8 Sep 2009, Graeme Geldenhuys wrote: > >> Hi, >> >> I know that the FP IDE (text mode) has support for reading OS/2 INF help >> files. This is pretty cool and it works with just about any INF file I >> threw at it. :-) >> >> I re

[fpc-pascal] GetThreadId, GetCurrentThreadId and MainThreadId

2009-09-08 Thread Vincent Snijders
Hi, While investigating http://bugs.freepascal.org/view.php?id=14335 I ran into the following peculiarities. Please, comment and tell for which item you want bug reports, if any. I tested on i386-linux. 1. The docs of GetThreadId seems to contain a typo: http://lazarus-ccr.sourceforge.net/doc

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > I'm been doing some reading on various help file format - to be used in > my applications and possible Lazarus IDE. From my OS/2 2.1 and OS/2 Warp > days I remember the INF help was very impressive. Searching was > lightning quick even on old hardw

Re: [fpc-pascal] How to find the byte offset of the n-th character in an UTF-8 string?

2009-09-08 Thread Martin
Have a look at LCLProc in lazarus. function UTF8CharToByteIndex(UTF8Str: PChar; Len, CharIndex: PtrInt): PtrInt; Roland Schaefer wrote: Hi all, I have a situation where I internally work with AnsiStrings but need to convert them to UTF-8 before passing them to libpango, which I do with AnsiT

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Michael Van Canneyt
On Tue, 8 Sep 2009, Graeme Geldenhuys wrote: Hi, I know that the FP IDE (text mode) has support for reading OS/2 INF help files. This is pretty cool and it works with just about any INF file I threw at it. :-) I read my old VisualAge for C++ for OS/2 docs and it says that to generate a INF y

[fpc-pascal] OS/2 INF help support

2009-09-08 Thread Graeme Geldenhuys
Hi, I know that the FP IDE (text mode) has support for reading OS/2 INF help files. This is pretty cool and it works with just about any INF file I threw at it. :-) I read my old VisualAge for C++ for OS/2 docs and it says that to generate a INF you need to create the help markup (similar to HTML

[fpc-pascal] How to find the byte offset of the n-th character in an UTF-8 string?

2009-09-08 Thread Roland Schaefer
Hi all, I have a situation where I internally work with AnsiStrings but need to convert them to UTF-8 before passing them to libpango, which I do with AnsiToUtf8(). I then need the byte offset of one specific (varying) character in the UTF-8 string, which is not trivially available since some chara

Re: [fpc-pascal] C-->Pas translation question

2009-09-08 Thread James Buren
> how to translate following C code to pascal? > > enum{IUP_SHOW, IUP_RESTORE, IUP_MINIMIZE, IUP_MAXIMIZE, IUP_HIDE}; > > thanks > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > W

Re: [fpc-pascal] C-->Pas translation question

2009-09-08 Thread Henry Vermaak
2009/9/8 yu ping : > how to translate following C code to pascal? > > enum{IUP_SHOW, IUP_RESTORE, IUP_MINIMIZE, IUP_MAXIMIZE, IUP_HIDE}; type TMyEnum = (IUP_SHOW, IUP_RESTORE, IUP_MINIMIZE, IUP_MAXIMIZE, IUP_HIDE); Henry ___ fpc-pascal maillist - fp

[fpc-pascal] C-->Pas translation question

2009-09-08 Thread yu ping
how to translate following C code to pascal? enum{IUP_SHOW, IUP_RESTORE, IUP_MINIMIZE, IUP_MAXIMIZE, IUP_HIDE}; thanks ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] The names of the various FPC documentation

2009-09-08 Thread Tomas Hajny
On Mon, September 7, 2009 13:39, David W Noon wrote: > On Mon, 7 Sep 2009 12:12:42 +0200 (CEST), Michael Van Canneyt wrote > about Re: [fpc-pascal] The names of the various FPC documentation: > >> On Mon, 7 Sep 2009, Graeme Geldenhuys wrote: >> >> > Such an "old" file-system limitation does not app