fpc-pascal · 2014-12
- Brook Framework and Template Engines9
What's the current status of the Brook Server Pages project? What's the recommended template engine to use with Brook Framework? Best regards
- How can you convert an enum value to string?12
Is there a subroutine that can convert an enum value to a strings, so that I can do something like ShowMessage(EnumToStr(enumValue))? Frank Church =======================
- raw printing throught USB port / WINDOWS7
I need a solution (unit?) to access printer (matricial like LX80, LX300 and so on) in raw mode throught USB port directly from FPC program build in mode win32 or win64.…
- AWS Lib - Object Pascal library for the Amazon Web Services3
I'm glad to announce the 0.2 release of AWS Lib, a minimalistic Object Pascal implementation for the Amazon Web Services. The project has been completely rewritten using…
- memory leak in TCustomSQLQuery.Create1
In TCustomSQLQuery.Create, FRefreshSQL:TStringList is created on line 2095, but never freed. This causes a small memory leak. Please see the attached test program…
- cloning data containers8
I hope you all had nice christmas days and now can answer my question. ;) Is there any way of cloning record and objects having only data fields? Or do I have to copy…
- Generated names in specialized classes are weird in Free Pascal5
Recently I've made a class to generate error log for codes in Delphi and Free Pascal. It works capturing the class name where the problem occurred, adding the date/time…
- Question about functions returning a string7
Take the following function prototype (in {$mode objfpc}{$H+} for the record): Function SomeFunction(const Data: PChar; const Len: LongWord): String; cdecl; public;…
- Benchmarks are odious, but...1
At http://www.fourmilab.ch/fbench/fbench.html John Walker, formerly of Autodesk, rates FPC as one of the faster languages but remarks "To the best of my knowledge, none…
- we can "nintendo dual screen" begin, again brother - I'll pull some strutils0
/rtl/nds# make PP=ppcarm BINUTILSPREFIX=arm-none-eabi- Makefile.fpc <http://free-pascal-general.1045716.n5.nabble.com/file/n5720668/Makefile.fpc> View this message in…
- Linux, keypressed, readkey6
Is it possible to do keypressed and readkey directly with a systemcall in linux without unit crt?
- unit crt linux CR LF1
When using the crt unit the CR LF is not working properly as I understand. Is it possible to change this behaviour? So that the CR LF is working? For examlpe when…
- file identification and metadata retrieval0
currently I'm searching for a library for use with fpc to handle arbitrary files. My goal is to check if file extension corresponds with content (e.g. a .gif named .png)…
- multi-platform and filesystem case sensitivity1
what is the recommended way of handling filesystem case sensitivity when users can provide a filename mask for use in processing? i'm not sure what the best or…
- Which gdb version to use?8
Since some versions gdb crashes with FPC programs if the "print" command is called with a query of pointer to not existing record fields for example, it triggers an…
- Size of a partition15
How to get the total size of an unmounted partition in Linux? For example "/dev/sdb1"
- When loading a TComponent from file, method Loaded fired but method Loading not.2
Could you please explain this problem? I think that Loading method should be called by streaming system.
- Generic: record type restriction1
I need to restrict a generic type to accept specialization only of enum types. In Delphi, I can do that using "T: record", but, when I try to use it in FPC (even using…
- else and otherwise in a case statement3
I've been doing a bulk replace of 'case..else' to 'case..otherwise' to eliminate possible ambiguities that have bitten me in the past, and have noticed something…
- compare currency and double4
I have the following code: var val: Currency; res: Double; begin val := 2345.67; res := 1e300; if val >= res then WriteLn('val >=res') else WriteLn('val < res'); end;…
- AnsiStrLComp AnsiStrLIComp4
According to the docs AnsiStrLComp treats #0 as normal characters, which sounds as if it does not stop at #0. Does it stop at #0 or does it not?…
- findfirst wildcards...24
how do you process for multiple filemasks? eg: find ts??????.sel and t???.sel for the same processing run ====== snip filemask.pas ====== Program Filemasks; Uses…
- node.js-like system using pascal2
Is there anyone out there making node.js-like system using FreePascal? Thank you. -Bee-
- red( clGrayText)4
using -Cr (Range Check) option, red( clGrayText) as example, throw an exception! how should I program "red" (or green, blue and may be some others) functions to avoid…
- Helper type and class fields2
"A helper type may not declare instance data, but class fields are allowed." ( http://docwiki.embarcadero.com/RADStudio/XE7/en/Class_and_Record_Helpers_(Delphi) ). In…
- -CR option and simplehtmltreeparser0
compiling simplehtmltreeparser with -CR option I get: F:lazaruscomponentsinternettoolsdatasimplehtmltreeparser.pas(591,13) Error: Incompatible type for arg no. 2: Got…
- SameValue and +-Infinity0
today I discovered that SameValue(infinity, neginfinity) returns TRUE. Why? It should be FALSE. Or not? Free Pascal Compiler version 2.6.2-8 [2014/01/22] for x86_64…
- mORMot1
Discussion elsewhere has mentioned mORMot as a development framework. It claims to work with both Delphi and FPC: is anybody actively using it "in anger", so that I can…
