fpc-pascal · 2011-04
- Installing FPC 2.5.1 in Mac OS X12
I am trying to install FPC 2.5.1 in Mac OS X. So I tryed this steps: 1> I have FPC 2.4.2 working fine 2> cd fpctrunk make clean make all sudo make install 3> In Lazarus…
- Readline substitute8
Hi! I want to equip a program with a command line and therefore want a powerful and user-friendly input prompt. Currently I use ReadLn(CmdLine); which is not as…
- read lines at end of file9
Need to read the last 4 lines (txt) of a very large log file 100M bytes, 100k lines or more lots of times - of course I can read through the file in the normal way but…
- How to translate this union ?11
I'm trying to translate the following union<https://github.com/ik5/sofia-sip/blob/master/src/lib/sui.inc#L199>to Pascal, but I do not understand it, and so does h2pas.…
- nested macros in C headers8
I found this: http://pastebin.com/T4jkeE6F in a zip file called vfp.tar.bz4 somewhere on the web, it seems not maintained since ages but obviously it must have compiled…
- Generics feature status3
I see now that generics have improved a lot since latest release, we even have Delphi compatible syntax in Delphi mode. Recursive generic type is supported as well now…
- How to get the offset of a record10
In Turbopascal it was possible with offs() type rectype = record var1 : longint; var2 : longint; var3 : boolean; end; var o : longint; recvar : rectype; o := offs(…
- OLE & COM Support0
How is the COM support in FPC nowadays? I have a project coming up that I may use FPC for. Lee
- Initialize object variables3
Is there any way to initialize object variables, other than writing an init method? So something like: myobj = object myvar: word = $ffff; end; Regards, Darius
- run pascal programs as scripts43
I would like to execute small pascal programs like normal unix scripts. For example: #!/usr/bin/instantfpc begin writeln('shebang executed'); end. Has anyone already…
- Working with PUCS4Char and UCS4String0
I'm getting a pointer to wchar_t which is PUCS4Char on linux and osx. To convert an UCS4String to WideString there is UCS4StringToWideString. But how can I convert…
- dependency problem when installing x86_64 on centos 5.51
Hi I'm trying to install fpc 2.4.2 using yum on centos 5.5 : yum localinstall fpc-2.4.2-1.x86_64.rpm It fires an error : Missing dependency : libtinfo.so.5()(64bit) is…
- android JNI JString to String5
I have a strange problem, I pass data from the android String via JNI. pass data from FreePascal wideString successfully using the following code NewString: function…
- A few doubts about C to pascal header translations:3
I've come across some constructs that I'm not sure how to translate: A procedure where one of the arguments is declared as: size_t arg; also a macro where appears:…
- More doubts on C to pascal header translations:2
I saw that h2pas translated: typedef void(*callback)(int pos, void* userdata); to callback = procedure (pos:cint; var userdata:pointer);cdecl; shouldn't it be? callback…
- FPImage and GetDataLineStart62
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é
- find return adress of a procedure/function4
How to find the return adress of the calling code of a procedure/function? Where in the stack is the information to the return adress? stack + - x? How to acess to the…
- delphi compatibility2
Just downloaded & tried to registry.pas - for accessing win registry. It uses SysUtils, WinTypes, WinProcs, Messages, Classes,ShellAPI My standard v242 fpc win…
- FileGetAttr fails on TrueCrypt partition5
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…
- SDL example3
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…
- Message methods3
I'm trying to understand how message methods work in FPC. For this I created a simple app that shows a message. I also created a second (identical form) and I expected…
- Font reading library13
I just tought I'd ask: Do we have a Pascal library for reading font files? TTF and other formats. Obtain the information about the font and the glyphs. Felipe Monteiro…
- GDB Case insensitive Search0
I can't figure out how to make a case insensitive search in GDB. The GDB docs only say that you can do the following but don't give much else or explain regexp.…
- New to freepascal and how to translate my delphi program.5
I am new to free pascal, but have some experience with delphi. I wrote a program to control a milling machine (Elektor Profiler, see elektor.nl/ forum program Doit).…
- stripping HTML7
is there any existing FPC code (even external libraries with bindings) to strip HTML tags from files, including adequate removal of scripts, comments and other…
- Assembling (pipe) /Users/{standard input}:2540:suffix or operands invalid for `cmovns'1
building LCL with OPT="-Cr" causes the problem in anchoreditor.pas (Assembling (pipe) /Users/{standard input}:3839:suffix or operands invalid for `cmovns') . Used…
- Self pointer existence2
Hi When does the self pointer's value become valid? I need a reference to the object being created inside the object's own create method. The last statement in Create…
- Re; New to freepascal and how to translate my delphi program0
Thanks for the quick response. It was just the things I was looking for. Piet
- DIFF Pascal component0
I was wondering if anyone knows a good Pascal component for generating a diff in the standard format. Googling I found TDiff here: http://angusj.com/delphi/ Maybe there…
- Variable argument list for cdecl functions1
Hi How do one access the array of const members for a function declared as cdecl? Eg. function A(args: array of const): integer;cdecl; I get a warning that cdecl'ared…
- Availability of RawByteString1
we need to use RawByteString with FreePascal and I saw it's implemented in cpstrnew which is in progress. Do you know when this branch will be integrated into a fpc…
- android share library with classes unit7
I managed to compile and run the library for android on emulator, which I compile the project just a libhellojni.so compile using paramater like this ppcarm -Scghi -O1…
- generic, specialize keywords in mode delphi in FPC trunk8
Hello. Following program: program a; {$mode delphi} type generic TGen<T> = class end; TSpc = specialize TGen<Integer>; begin end. compiles with FPC 2.4.2, but not with…
- TMenu - barbreak Delphi Compatbility.5
Guys. In Delphi you can set the break to barbreak to break the menu in half , whats the best way ( if possible to do this in lazarus ) ? Delphian
- Inherit interface from 2 interfaces11
Can i do that? type IIntf3 = interface(IIntf11, IIntf2) .... end; Thanks in advance. Zaher Dirkey
- Delphi 2010 code crashing in Lazarus (0.9.30, Win32)1
I have a DLL that was compiled using Delphi 2010 (or Delphi XE, not sure which...), and this DLL uses PWideString in a bunch of it's interfaces. I have some code that…
- Is there a problem on the lazarus mailing list?6
Sorry for the off-topic, but I sent a message yesterday to the lazarus mailing list and it hasn't appeared. In fact there aren't new messages since last Sunday. Does…
- Strange arm-linux cross-compilation errors2
In this thread: http://www.lazarus.freepascal.org/index.php/topic,12585.0.html I though that maybe posting here would help, since the user has some problems with some…
- Problems with GetMem4
ZeelandNet Webmail I get strange errors when using GetMem. In my app I keep on allocating and freeing memory in a variable. At a certain moment I do keep getting a…
- Parsing commandline parameters with wildcards on Linux8
I ran into a problem with resolving commandline parameters, due to wildcard expansion by bash. Consider the following code: for i := 1 to paramcount do writeln(i,':…
- Problems with an FPC server1
The server hosting the FPC mailing lists, ftp site, wiki and community site has crashed badly yesterday. Almost everything has been restored from backup in the mean…
- Compiling android example2
http://wiki.lazarus.freepascal.org/Android_Interface/Native_Android_GUI I've downloaded the example of the android application, done the following: A. Installed…
- "is" for class references2
Is there an equivalent to "is" for class references? type CNodeContent= class of TNodeContent; procedure walkContent(node: CNodeContent); begin…
- When compiling with gdb and dwarf code works, no gdb and dwarf, segfault0
I have this weird problem, that when I compile my code (FPC 2.5.1) with debug information (gdb, dwarf) my code works properly. When I remove the debug information,…
- TFPImageCanvas TextOut raise an exception3
When I try to do the following: Canvas.TextOut(5, WhereY, Text); to an image, I get the exception of PixelCanvasException with the message of Not Available. How can I…
- 0
- Creating windows cross arm-linux ppcarm compiler.4
How do I build windows ppcarm cross arm-linux fpc? Amit
- regex unit and word boundaries2
Does the Regex unit included with FCL support word boundaries? eg: the \b tag as used by some other regex libraries. If the Regex unit does support it, what syntax must…
- utf8bidi and freebidi in rtl2
Is there a reason why both units are not deployed by FPC ? Ido LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il
- Library for network calculations2
Is there an fpc library for TCP/IP network calculations, like computing subnets, broadcast address etc. Frank Church =======================…
