fpc-pascal · 2016-06
- Digital Certificate, CAPICOM2
Do you use Digital Certificate? If yes, which library/component? I'm using ACBr project http://svn.code.sf.net/p/acbr/code/trunk2/ It has CAPICOM supports (only…
- What is a *.fpm file in FPC Trunk?2
While browsing the "packages" directory I came across *.fpm files. What are they for, and what process creates them? For example: ------------[…
- Access C++ APIs4
I want to play a little with a fresh Qt 5.x. Lazarus access Qt through Qt4Pas. I see "Linking with C++ code" in future plans for FPC. Is there another way? For example I…
- UNICODE define10
can I rely on http://wiki.freepascal.org/User_Changes_3.0#UNICODE_define_depends_on_default_string_type_instead_of_on_target_platform that UNICODE is defined just when…
- Mouse, scroll wheel support?2
Is there a non Lazarus means of accessing the mouse, and scroll wheel? I have an app that uses some old driver which doesn't address the wheel. I'm trying to make the…
- reference-counted function results not initialized to nil18
After upgrading fpc 2.6.4 -> 3.0.0, I'm seeing a bug where (as noted in subject) reference-counted function results are not being initialized to nil. Is this a known bug?
- which "managed" result types require extra work?6
Okay, making a new thread here, to ask one question: Which types do we need to initialize to null/nil/zero/'' when they are a function result? - dynamic arrays -…
- FreePascal and Lazarus Foundation9
Hi all, This morning I was glad to found this website: http://foundation.freepascal.org It's about time to have a foundation for our beloved projects. I hope by having…
- Single threaded application on multicore CPU11
may be that this question is bit off-topic here, but I am sure, that here are experts, which know answer ;-) I have simple Lazarus/FPC application (with no explicit…
- Quick Modern Object Pascal Introduction, for Programmers31
So, I wrote a document describing (quickly!) many features of the modern Object Pascal:) Read on:…
- building current trunk0
i posted this to the developers' list but have not had any response to it or another one i posted yesterday... so i'm going to post this one here in the hopes that…
- why (ClassType as TMyClass).Create fails2
Following up to the cloning example code: Type TMyClassRef = class of TMyClass; implementation function TMyClass.Clone(AOwner: TComponent): TMyClass; begin Result :=…
- (Unix) file locking6
I'm approaching a situation where up to four identical processes will be reading and writing the same files. There will be process-level synchronisation which should…
- default parameter single = NaN5
After installing fpc 3.0.0, I'm getting an... Error: function header doesn't match the previous declaration for a (non-method) function that does exactly match its…
- What is the difference between case else and case otherwise2
There is no details on http://www.freepascal.org/docs-html/ref/refsu57.html Thanks in advance. Dennis
- Need help with a backtrace from fpc 2.6.41
i have an app, that is pc's with os's varying from xp to win 10 ( all windows ). All ( almost ) the pc's are controlled by the company I work for and their installation…
- How to find the return type of a for..in ?7
I've never really used the for..in in real code, because I think the iterator is very limited. I've implemented much more flexible iterators for most container types.…
- Finding the path of a TJSONObject?3
Is there a method (just so you know GetPath() wasn't it) that returns the "path" or hierarchy of a TJSONObject instance? eg: I can do: obj :=…
- What is the best memory optimization parameter2
What is the extreme memory optimization parameter to compile fpc for the embedded system? And could someone tell me what is the minimum memory specification for…
- mips linux cross compiled application error7
I have compiled a simple mips/linux application with using raspberry pi, when I execute the app. it replies with this error. Device is onion omega. Illegal instruction.…
- how to expand a set?6
what is the best/easiest way to increase the size of a set if the set is defined as the following? const CMaxCount = 255; type TMsgAreas = set of 0..CMaxCount; var…
- Conditional code for FPC modes5
Are there defines matching the modes in FPC, for example {$mode delphiunicode} ? I want to do something like : {$IFDEF delphiunicode} ... {$ELSE} ... {$ENDIF} Juha
- FPC 3.0 using clang for cross compile2
Hi List. I just recently tried to update the build system for our products in order to use fpc 3.0, but found that when i try to make the cross-compiler for Mac OS, it…
- firebird UDF1
can somebody point me to some source code ready to be compiled for Ubuntu ? Thank you Peppe Polpo
- Type helper for array4
I've got following declaration: ... {$modeswitch typehelpers} interface uses Classes, SysUtils; type TBuffer = array of Single; { TBufferHelper }…
- Incompatible types: got "SYSTEM.PChar" expected "SYSTEM.PChar"3
I have a lot of constant strings and some array of records that should be initialized in one field with one of this entries, so I found two solutions, one is create a…
- Writing fpWeb app without Lazarus6
I'm now learning how to use fpWeb. But for some reasons, I don't want to use Lazarus. Instead, I want to write the program using plain text editor or console text editor…
- Java equivalent of Pascal's class reference functionality5
I know this is not a Java forum, but thought maybe somebody here with Object Pascal and Java knowledge could help (seeing that Java-only developers might not know what…
- Reasoning behind the inability to override a property0
Just my curiosity about this particular "feature", why is property overriding not allowed (redeclaring with different visibility is however allowed)? e.g. consider the…
- Delphi-FPC portable code for endian conversion3
I have a class file implementing interfaces for talking to an embedded system and I intend to use this class for both Delphi (on Windows) and FPC (on ARM Linux) One part…
- Questions regarding FPImage's TFPMemoryImage.FData variable8
The internal FData field variable of TFPMemoryImage is of type FPFItegerArray and is defined as follows: TFPIntegerArray = array [0..(maxint-1) div sizeof(integer)-1] of…
