[fpc-pascal] SDL example

2011-04-20 Thread Nataraj S Narayan
Hi I am on fpc/packages/sdl/examples. # ppcrossarm demo03.pas -darm -XD -CX Free Pascal Compiler version 2.5.1 [2011/03/01] for arm Copyright (c) 1993-2010 by Florian Klaempfl Target OS: Linux for ARM Compiling demo03.pas Assembling demo03 Linking demo03 /uclibc-tc/arm-linux-ld: warning:

[fpc-pascal] FileGetAttr fails on TrueCrypt partition

2011-04-20 Thread reynolight
g: is the XP system volume. x: is the truecrypted NTFS partition. No problem to set / get / show file attributes with Win32 GUI on both volumes. Same with attrib.exe on console. sysutils.FileGetAttr(g:\*) is fine, as well, but FileGetAttr(x:\*) returns -1 as an error. After copying a file from

Re: [fpc-pascal] FileGetAttr fails on TrueCrypt partition

2011-04-20 Thread Michael Van Canneyt
On Wed, 20 Apr 2011, reynolight wrote: g: is the XP system volume. x: is the truecrypted NTFS partition. No problem to set / get / show file attributes with Win32 GUI on both volumes. Same with attrib.exe on console. sysutils.FileGetAttr(g:\*) is fine, as well, but FileGetAttr(x:\*) returns

Re: [fpc-pascal] SDL example

2011-04-20 Thread Michael Van Canneyt
Which sources are this ? I looked in todays SVN, and I find neither examples, nor a dependency on X11 in the sdl package. In fact, the whole FPC package sources do not contain a demo03.pas file. (unless SVN and my harddrive are screwed up) Michael. On Wed, 20 Apr 2011, Nataraj S Narayan

Re: [fpc-pascal] SDL example

2011-04-20 Thread Nataraj S Narayan
Hi I had copied it from SDL4Freepascal (http://sourceforge.net/projects/sdl4fp/). It works well on i386. regards Nataraj On Wed, Apr 20, 2011 at 11:54 AM, Michael Van Canneyt mich...@freepascal.org wrote: Which sources are this ? I looked in todays SVN, and I find neither examples,

Re: [fpc-pascal] SDL example

2011-04-20 Thread Michael Van Canneyt
On Wed, 20 Apr 2011, Nataraj S Narayan wrote: Hi I had copied it from SDL4Freepascal (http://sourceforge.net/projects/sdl4fp/). It works well on i386. In that case, you should actually ask the question of the SDL4Freepascal maintainers :-) Most likely, there is a {$linklib X11}

Re: [fpc-pascal] FileGetAttr fails on TrueCrypt partition

2011-04-20 Thread reynolight
Am 20.04.2011 13:47, schrieb Michael Van Canneyt: On Wed, 20 Apr 2011, reynolight wrote: g: is the XP system volume. x: is the truecrypted NTFS partition. No problem to set / get / show file attributes with Win32 GUI on both volumes. Same with attrib.exe on console.

Re: [fpc-pascal] FileGetAttr fails on TrueCrypt partition

2011-04-20 Thread Michael Van Canneyt
On Wed, 20 Apr 2011, reynolight wrote: Am 20.04.2011 13:47, schrieb Michael Van Canneyt: On Wed, 20 Apr 2011, reynolight wrote: g: is the XP system volume. x: is the truecrypted NTFS partition. No problem to set / get / show file attributes with Win32 GUI on both volumes. Same with

Re: [fpc-pascal] FileGetAttr fails on TrueCrypt partition

2011-04-20 Thread reynolight
Am 20.04.2011 16:58, schrieb Michael Van Canneyt: Well, This is the implementation of FileGetAttr: Function FileGetAttr (Const FileName : String) : Longint; begin Result:=GetFileAttributes(PChar(FileName)); end; As you can see, the function returns the result of the GetFileAttributes

Re: [fpc-pascal] FileGetAttr fails on TrueCrypt partition

2011-04-20 Thread Jonas Maebe
On 20 Apr 2011, at 17:16, reynolight wrote: Am 20.04.2011 16:58, schrieb Michael Van Canneyt: As you can see, the function returns the result of the GetFileAttributes Win32 API call. Why this call returns -1 is something that we cannot speculate on. Most likely seems an error in the

[fpc-pascal] FPImage and GetDataLineStart

2011-04-20 Thread Leonardo M . Ramé
Hi, I need to write a function that replaces TLazIntfImage by using fpImage, and I can't find an alternative to GetDataLineStart. How can I replace it?. Leonardo M. Ramé http://leonardorame.blogspot.com ___ fpc-pascal maillist -