fpc-pascal · 2010-07
- Working Free Pascal android JNI example42
I've done a working Free Pascal android JNI example (with working .apk for current ARM-based Android device of the second device generation (because with VFPv3, so…
- methods of an object to create others objects83
We can to use methods of an object to create others objects, or this is a bad programming practice? eg: var obj1, obj2: TmyObject; begin obj1 := tobj1.create; //ok obj2…
- Ideas for namespace implementation41
As I stated in another thread, namespaces are not perfect, but they do work, and they do greatly reduce the chances for unitname or classname conflicts. Other languages…
- Property Tags7
Hello ! I'm writing a ActiveRecord system for Freepascal (Something similar to what RubyOnRails do), and i am having some problems (I'm not following MVC logic, more of…
- Help to create a Makefile to build a shared library on Linux2
Can you help me creating a Makefile to replace this ugly "build.sh" script ? # cat build.sh #!/usr/bin/env bash PROJECT=nepudf UIB_ROOT=../uib/source MACHINE_TYPE=`uname…
- Two questions about Pascal3
Two "simple" questions. 1) Is there any way in Pascal to write something like this (pseudocode): With Result:=Object.Create() do begin Free; end; Which will be written…
- Method pointer to a static method of an object?2
I want to make a reference to a static method of an object, but keep getting error messages. ================================================================ program…
- Licensing issue: Subclassing4
There was a question raised in Russian FPC forum about whether LCL license (modified LGPL) should be applied to a subclass of LCL class: TMyButton = class(TButton) This…
- installing or using multiple versions of FPC on linux4
Currently I have the latest svn of FPC installed (make install) which results in all files being installed where they belong, the binary being in the search path and…
- package keyword2
Hm, this may be one silly question... but I couldn't find docs on it, I hadn't come accross it before... A file that should compile can start with: 'unit xxx;' 'program…
- questions mark linux and windows2
I wrote this program. var c,d: char; Begin c:=#$00B1; Writeln(byte(c)); Writeln(c); d:=#$0080; Writeln(byte(d)); Writeln(d); End. When I compile on Linux, the variable…
- A check before setting a property (or the cost of a call instruction)1
In Lazarus i just committed the following code: if Alignment FDataLink.Field.Alignment then Alignment := FDataLink.Field.Alignment; but i could do also: Alignment :=…
- How choose units names?9
How choose units names? I was thinking what are the best names to my units to not to conflict with the units of the FPC, Lazarus, and others frameworks or libs. e.g.…
- How to set a CORBA interface property (tkInterfaceRaw) through RTTI1
I've managed to set a COM interface property (tkInterface) through RTTI using SetInterfaceProp. But i could not find a way to set a CORBA interface property…
- Module or Plugin or similar howto implement?7
Hello all: I'm developing an app and need to extend its functionality via external modules or plugins. Currently i'm trying to do it using dll/so but don't know if there…
- Extending an enumeration5
If I have a class with a property Phase: TrrPhase where TrrPhase is an enumeration such as (rrQuiescent, rrInitialised), is there an elegant way of extending the…
- Initialize the object (not class)2
I have used object to make more easy, not need to create or free it, MyObject = object private FProp1: integer; public Prop1: integer read FProp1 write FProp1 procedure…
- redirecting stdout8
is it possible to redirect stdout so that everytime I call writeln() the output is sent to a function that accepts a string instead of stdout? I have googled for some…
- How to get address of MyFunction in MyFunction?5
to get address of function I can use @MyFunction, but if I use it within MyFunction - I get address of Result. How can I get address of current function? (It's not for…
- fpweb tutorial17
Does anyone know where I can find documentation or a tutorial about fpweb? Also, is the version included in FPC 2.4.0 very old and I should really use the FPC SVN code…
- "class" methods for objects7
while converting bullet physic code to native fpc, i would find it handy to have something like "class" methods for objects. (Methods without self pointer) (It would…
- gdb Segmentation Fault - $D- does not help?1
I am still struggling with the Segmentation Fault that gdb produces when loading my app's symbols on Mac OS X. I inserted $D- at the top of a few hundred units, but the…
- fpc-passrc expression parser (issue #16914)6
Sorry, I can't write to the resolved issue (without re-opening) it. That's how it was originally written. However, I personally prefer to keep less subclasses. I would…
- Search Engine friendly CGI web apps and pages7
Google and probably most other search engines don't index website that have URL's in the following format: http://localhost/mycgi?action=myaction Basically parametrized…
- Lazarus Snapshots Intel Mac with FPC 2.4.1?11
I'm having serious problems with bugs in FPC 2.4.0 on Intel Mac OS X. Would it be possible to post snapshots with 2.4.1? Tobias
- writeln: FPC runtime race conditions in external C threads16
While using an external C framework (Mac OS X, discrecording OS framework, FPC 2.4), I noticed that my FPC console app crashes when I use writeln's in both C threads…
- Tool to create C-Header from Pascal source?3
Hi! Is there a tool to generate C headers from Pascal library source files? The Delphi compiler can do this, but I would need a solution for Linux. If there's not such a…
- 2.5.1: Ansi string constants vs Unicode5
I've got 2.5.1 now. I have a string constant like this: const Vec:AnsiString=#$094#$06D; This should just be 8-bit data with no conversion. But I get "Error:…
- Mac OS X gdb: Segmentation Fault loading my project9
I am back developing for Mac! My compiled application with symbold is 93.5 MB in size and gdb cannot load it, so the debugger in Lazarus fails too. This happens on both…
- TFPTimer: how can I use it to closse a window?1
I've made a really simple application, that shows a simple dialog box with current time. I want it to close itself after 15 seconds. I tried to use TFPTimer, but there…
- 0
- Any drawbacks with -Fcutf8 param4
If I pass -Fcutf8 to all my projects, even though the source code in units are plain ASCII, is there any negative/drawbacks regarding FPC and how it processes my units?…
- Converting a graphical DOS program to fpc3
I'm wanting to convert a Turbo Pascal program to fpc, to run (ultimately) under linux, although I'm actually developing on a mac, and using virtualbox to run ubuntu. The…
- question about changing default ASCII table in the fpc 2.2.0 IDE6
I would like to print a square root symbol using write(chr(251)); as I could before SP3 for XP was installed on my PC. Currently am getting a superscript 1 rather than…
- FastCGI and FpWeb2
I've created some CGI applications with fpWeb with success. I tried to create a FastCGI application (a simple hello world) but when a request is done the program start,…
- MSEide+MSEgui version 2.4rc10
MSEide+MSEgui rev. 2.4rc1 has been released: http://developer.berlios.de/project/showfiles.php?group_id=11520 Martin
- access violation somehow related to dlopen'ing libssl3
Greetings once again! I've run into a little bit of a strange problem that I'm hoping someone here will be able to help me figure out. I'm using, as I suspect some of…
- How to include a Windows Version resource in a fpc compiled DLL?3
I have recently ported over a DLL from Delphi to fpc, so we can offer the DLL as a shared library on 32/64 bit linux, as well as 64-bit Windows. On the Windows platform,…
- Pascal grammar: Program heading can include parameters3
I'm busy writing a Object Pascal grammar section for the Language Reference doc. In the ref.pdf (page 144) it says that the PROGRAM line can contain 'program…
- Is this if /else syntax wrong?7
The following code generates a syntax error, if the semicolon after the if/else statement is removed. Is its absence a syntax error? Pascal version is 2.2.4 procedure…
- xmlrpc unit20
It seems that the xmlrpc unit is missing from fpc source tree (trunk). Was it renamed (to what) or was it remove (why was that) ? Ido http://ik.homelinux.org/
