fpc-pascal · 2009-11
- sysutils.beep doesn't beep under Linux?37
I'm porting some code which "beeps" the console. When I use sysutils.beep() it doesn't work under Linux. What's the easiest way to accomplish this? Thanks. -- Bruce…
- private integer is an illegal counter variable13
If I define a private integer: TDemo = class(TCustomApplication) private i: integer; ... and in a protected method I use it: for i := 0 to List.Count - 1 do ... then I…
- readonly variables43
is it possible to set a variable in a programm as a readonly variable? I would set a variable at a position in the runing programm. Since this time the variable should…
- (Generic) Container Classes5
I submitted a TStringHashMap class to CCR. I also created a wiki page: http://wiki.lazarus.freepascal.org/StringHashMap I made a comprehensive demo program for it. It…
- Interfaces via implements keyword8
Hi all I've got a non-obvious class hierarchy with interfaces involved. The problem is that, I thought "property ... implements ...;" construction fully substitute for…
- Troubles with CGI and POST content4
Hello together! I'm working on a little personal website and encountered a very strange problem with the content that is sent by a form: I run the attached CGI test…
- Split and Join5
FPC's strutils or other libraries still don't have functions for splitting a string to a list and joining a list of strings again to one string, given a delimiter as a…
- Pascal grammar for FPC.0
Hello. In order to get translations from FPC to Ada language, I have updated P2Ada translator http://sourceforge.net/projects/p2ada. I add a new ObjP2Ada branch. The…
- make CPU_TARGET=arm OS_TARGET=linux ignores both flags5
I'm trying to cross compile FPC 2.5.1 in Linux 64 bit (in Arch Linux) to arm (eabi) cpu. When I'm using make CPUT_TARGET=arm OS=TARGET=linux all The make file build an…
- TCgiApplication in cgiapp unit - mostly deprecated1
Most of the methods in TCgiApplication (located in cgiapp unit) is marked as deprecated. There is no documentation for this unit, so I do not know much about it. If all…
- Where do I contribute units to?1
Hi all I have translated a C header file for interfacing with a National Instruments data acquisition device. This is a standalone, independant unit which will rarely if…
- sqldb, oracle, and mac os x1
I'm writing a program which connects to a remote Oracle server using sqlDB (TOracleConnection). TOracleConnection keeps telling me that Oracle client library…
- Re: cpu4
it compiles out of the box with the 2.2.4 go32v2 compiler. You will want to add a {$CALLING PASCAL} statement at the top of the units - some assembly code assumes some…
- Escaping keywords0
Hello Developers There's Delphi compatibility feature to escape keyword with "&" character. Is there any way to turn the feature off or enable a hint or a note about the…
- Subversion server making hickups...2
Hi. For unknown reasons the svn2.freepascal.org subversion server seem to make hick-ups when I do an update. I get the error: svn: Can't find a temporary directory:…
- Re: Illegal type conversion errors in FPC 2.5.14
Thanks. It compiles and works now. In the latest Delphi VirtualTreeView version the typecast is changed to Byte or Word depending on the element count in a set. I…
- Generic type declaration example versus manual.19
Hello. In example tgeneric16.pp (from FPC 2.2.4 sources) the generic type TStack is declared as: type { TStack } generic TStack<T> = class(TObject) public procedure…
- Using C functions4
Is there any way to use a C library that use the __fastcall calling convention?
- How does inline work?5
I'm trying to use inline to remove unnecessary debugging code, such as the following code, with FPC 2.3.1 on Windows, when compiling for production. However when I…
- MSEide+MSEgui rev. 2.2beta20
MSEide+MSEgui rev. 2.2beta2 for FPC 2.2.4 and 2.4 has been released: http://sourceforge.net/projects/mseide-msegui/files/ There is an experimental x84_64_linux version…
- How to solve "variable does not seem to be initialized" compiler hint.68
And how do I solve this compiler hint? Normally I use FillChar(), but here it made no difference. The hint no simply moved to the line containing FillChar() call. :-(…
- One experience with the unit serial16
one more question regarding the unit serial. I use the following function to get one single byte form a serial port, which has been open before with seropen: function…
- How to solve "Conversion between ordinals and pointers is not portable"16
How to I solve this compiler hint? I've managed to get DCPCrypt compiled and running successfully (with my current tests) under 64-bit FPC & Linux. But I still have…
- Microsoft SAPI2
Does anyone know of Pascal binding for Microsoft SAPI that can be used with FPC ? Ido http://ik.homelinux.org/
- using popen() and assign/reset1
I'm trying to get unix.popen() running. The RTL.pdf says the file opened with popen (stdin for reading here) has to be reset or rewritten. The example does not do…
- question about FpTimes in BaseUnix package4
I am using the FpTimes function from the BaseUnix package. The documentation says it returns -1 on an error, otherwise the number of clock ticks since boot time.…
- Is there a way to declare a static varible in a function body?2
Is there a way to declare a static varible in a function body? the varible should remain the value assigned from last call. thanks
- IOPL - how to use it?0
I am currently running the fpc in version 2.2.2-8, and I have some problems to get iopl and fpiopl working. It seems, the units oldlinux and x86 are not available to…
- Web interface for public.mseide-msegui.talk0
Wahono activated a web interface with search function for public.mseide-msegui.talk: http://msegui.org/fudforum/index.php?t=thread&frm_id=2&S=a0f13320c71aa14a269ca8b4d05f…
- Re: Installing "fpc-2.4.0-0.rc1.src.rpm" to OpenSuse 11.22
Right, yes. It is /usr/src/packages. I was looking for /usr/share/fpcsrc or similar like older Suse packages have. I found the Programmer's guide under Documentation on…
- Parameter with no type defined?2
If I have a declaration as follows... what type is InData and OutData? Pointers? If it is a generic Pointer type, then why doesn't developers simply declare it as…
- const records passed incorrectly30
Hi all. I am new to fpc and linux in general, though I do have a long time experience with Delphi. I was writing some code basic system (using the libc library) when I…
- Lazarus10
Is here a contact person who is developing lazarus? May be everyone is interested in this: When searching text in lazarus, always the preconfiguration is 'searching from…
- one question FPC2
I have a program in Pascal that compiles correctly on windows 32-bit but when I compile on windows 64-bit give me the following errors: Compiling…
- Ubuntu PPA for fpc 2.4rc1?1
will somebody please create an Ubuntu PPA for newer releases of fpc? ;-) I guess this would be trivial to the maintainer of fpc packages in Ubuntu, but if it's not the…
- Compiler Warning: Constructor should be public11
I've searched the list archives related to the subject of the fpc warning "Constructor should be public" and am unsure as to the resolution of this issue, or would…
- Any Way to catch endless loop in fpc in Wince?3
Hi Is there a way (or a 3rd party component or a library) to catch an endless loop after x seconds in applications running on arm Wince? View this message in context:…
- h2pas truncates strings5
Hallo I am trying to convert a .h to pascal with h2pas. The header file contains many declarations with lines of 400 characters or longer. h2pas creates the *.tmp.h file…
- GDB for 64 bit Windows ?1
i have build a native ppcx64 in windows 7 64 bit. But i can't find a 64 bit version of GDB in http://svn.freepascal.org/svn/fpcbuild/trunk/install/binw64. Is the 32 bit…
- Stopping daemon in linux22
Hi I am writing an application using lazdaemon. How does one stop the daemon gracefully, ie not killing it. The wiki says the daemon runs until it receives the TERM…
- Why can't 64bit FPC cross-compile 32bit16
What can the 32bit FPC compiler (currently I run under Linux) cross-compile to 32bit Windows or 64bit Linux. But the 64bit FPC (Linux) can only cross-compile to other…
- Stack checking in dynamic libraries4
I have found out the following during development of my project and wanted to ask for some explanation. I have a dynamic library which is dynamically loaded from the main
- TCustomApplication and QApplication2
I'm trying to write a console program that uses some features of QT (webkit and printing from webkit) using FPC 2.2.5 QT have QApplication that I require to use because…
- Understanding valgrind logs2
I'm trying to figure out valgrind's log about a program I wrote in Pascal using FPC. I have a lot of the following messages:\ ==30348== Mismatched free() / delete /…
- Debugger for the fpc available?2
while writing some Pascal code, I am still looking for a debugger, which works like the turbo debugger, in a similar way. I would love it to get a clue. Best regards,…
- Forin Test7
I've play with forin construction. To my work I need more than one per collection. In attach is one of example program. Can someone review it. is this proper…
- Windows Seven and SVN source install9
I just got a laptop that came with Windows Seven. I have complete automation scripts with my Ubuntu boxes but NONE of the commands to "make" FPC translate for me. I…
- Is there call back function when read resourcestring1
Is there call back function when read string resourcestring, like as resourcestring sHello := 'Hello'; s:= sHello; //<-- here like TWideStringManager is there a manager…
- fpc and Sqlite UDF8
Hi Anybody has written custom UDF for Sqlite 3 using fpc? If so kindly help me with some hints to get started. regards Nataraj
- G_TYPE for custom class0
Hello! I have the following part of GLib-C-Code: typedef struct SomeObject SomeObject; typedef struct SomeObjectClass SomeObjectClass; GType some_object_get_type (void);…
