Re: [fpc-pascal] Stack problem in externally called callback function

2009-08-03 Thread Jonas Maebe
On 03 Aug 2009, at 08:49, Wimpie Nortje wrote: The FPC thread setup code (CAllocateThreadVars, InitThread) happens inside the newly created thread before the user's thread function starts. The only viable way I see to get support from the C library is for it to inform FPC about a new thr

[fpc-pascal] More WideString routines

2009-08-03 Thread Felipe Monteiro de Carvalho
Hello, >From time to time when I use widestring I miss equivalent functions to those available for ansistrings. At the moment I need a widestring replacement for StrPos. I searched for WideStrPos in my FPC 2.2.2 but nothing came. Any ideas? And if we really lack more widestring routines, where s

Re: [fpc-pascal] More WideString routines

2009-08-03 Thread theo
Felipe Monteiro de Carvalho schrieb: Hello, At the moment I need a widestring replacement for StrPos. I searched for WideStrPos in my FPC 2.2.2 but nothing came. Any ideas? StrPos is for PChar. Do you mean Pos? There are lots of versions of Pos. One of them is Function Pos (Const Substr :