Re: [fpc-pascal] GetCurrentThreadID to string

2009-05-21 Thread Vinzent Höfler
Graeme Geldenhuys : > How do I convert the GetCurrentThreadID() result to a string? > > At the moment for Linux and Windows the following works: > > var > lsThreadID: string > begin > lsThreadID := IntToStr(GetCurrentThreadID); lsThreadID := SysUtils.IntToStr (QWord(GetCurrentThread

Re: [fpc-pascal] GetCurrentThreadID to string

2009-05-21 Thread dmitry boyarintsev
lsThreadID := IntToStr(PtrUInt(GetCurrentThreadID)); should solve ANY problem. thanks, dmitry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] GetCurrentThreadID to string

2009-05-21 Thread Graeme Geldenhuys
Hi, How do I convert the GetCurrentThreadID() result to a string? At the moment for Linux and Windows the following works: var lsThreadID: string begin lsThreadID := IntToStr(GetCurrentThreadID); But under Mac OS the above code gives me the following error: Error: Incompatible t