fpc-pascal · 2012-06
- Automatically exporting C++ API using SWIG??26
The recent thread about using C headers made me think about using C++ projects. Found that the SWIG tool converts C/C++ .h files into glue code and bindings for e.g.…
- Win64 SEH patch fixes some Firebird embedded bugs18
Just compiled FPC with -dTEST_WIN64_SEH and noticed that fixes bugs 17360 Firebird database exceptions don't generate EIBDatabaseError but a general exception on 64 bit…
- Header translation, argument list, array of const?5
Hello, I need to call the following function: /** * Notifies Purple that a buddy's status has been activated. * * This is meant to be called from protocol plugins. * *…
- record helper types in 2.62
hello, I am referring to this: http://wiki.freepascal.org/Helper_types I am using 2.6.1 from the fixes branch, last updated no longer than a week ago. the wiki mentions…
- Unhandled exception from library crashes host exe12
I am sure that this has been asked before but I couldn't find an answer. I am in the process of porting a large application consisting of an exe and many dlls from…
- Shared libraries and threadvars7
I'm currently tinkering with shared libraries, using cmem, mainly on Linux. In one case the main-program code is multithreaded, but so far I'm not moving data between…
- Variable alignment in arm-embedded23
I want to make an interrupt-vector-table for the cortex-M3 processor. When I read the docs of the processor good, the start of that table needs to be on a multiple of…
- Error message: No matching implementation for interface method ...0
I'm getting the below error messages and I suspect virtualstringtree / VirtualTrees.pas is the cause. The virtualtrees.pas line it objects to is: TVTDragManager =…
- fpc arm-embedded suitable for cortex-m4 ?2
Last week I attended a seminar regarding cortex-m4. I was wondering if fpc works for that processor. AFAIK, the processor is compatible with a cortex-m3, but has a…
- Windows Phone 8 + pascal12
*In a CNN news page http://edition.cnn.com/2012/06/20/tech/mobile/windows-phone-8-microsoft/index.html I found* that Windows Phone 8 will support native C code. That…
- Codepage: UTF-8 code greater than 65535 found1
In order to enable UTF-8 characters, I tried to use it: program dvcodepage; {$codepage UTF8} uses Sysutils; var x: integer; BEGIN writeln('Digite um número'); readln(x);
- DOM and namespaces with prefix4
Hi all. I am working on implementing a lite export routine from our program to the DDI XML format: http://www.ddialliance.org/Specification/DDI-Lifecycle/3.1/XMLSchema/…
- UTF8 JSON library: was: UTF-8 XML5
(Cross-posted to Lazarus and FPC lists) Related: With the help of Ludo Brands - as usual ;) - I've converted the FPC fpjson library to return UTF8 data. I use it for my…
- encryption and decryption10
Does someone know how to do encryption and decryption with keys?
- Writing an outlook addons in FPC0
What is require in order to develop addons for MS Outlook using FPC ? Are there any existed headers that where bind to Pascal that does it ? Ido
- AUTO: Luca Manganelli è assente dall'ufficio0
Sono fuori dall'ufficio da Ven 22/06/2012 fino a Lun 16/07/2012. Nota: Questa è una risposta automatizzata al messaggio "Re: [fpc-pascal] Adding method dynamically to…
- Adding method dynamically to a class16
Is there a way to tell in run-time that a specific function/procedure should belong to a class ? For example, let's say I have the following class: Type TTest = class…
- Postgresql Concurrent Transactions1
I'm seeking help to address an issue I presently have with a Server application that uses TPostgres components. Each manager thread has its own Connection, Transaction,…
- OAuthv1/Twitter library/application ready; was: EncodeURLElement, underscore and RFC3986?3
(Cross-posted to Synapse and FPC mailing lists) I've finished a basic Twitter application and OAuth v1 library under an MIT license (happy to relicense under the Synapse…
- Creating video files7
I would like to write video (created from series of bitmaps) to some popular video formats like avi, flv. Is this possible? Has FPC bindings for video librarys? I…
- Converting from seconds to TTime: easiest way?6
I'm trying to convert a large number of seconds to a TTime. To my surprise - without a Delphi background ;) - EncodeTime only takes up to 59 seconds... ;) Same for…
- fpimage blur9
Is there a function to blur an entire fpimage or a rectangular area? Mattias
- Dynamically Execute method6
I'm playing a bit with the notion of execute a method dynamically on demand. I'ved created the following PoC: https://gist.github.com/2950789 It works, but for some…
- header translation question, 64 bit problem10
I am translating parts of the libpurple headers. Now I seem to have a problem with this: typedef enum { PURPLE_PLUGIN_UNKNOWN = -1, /**< Unknown type. */…
- fpmake question3
I have some questions about fpmake. I cannot find any real examples or helpful explanations about it, so I'm currently experimenting with the incomplete information from…
- Playing sounds with standard components24
Bass is a very good library for sound playing and recording. However, it's not included as an standard feature of Freepascal. For whom wich wants to work with standard…
- Strings and objects crossing dll boundaries2
A couple of questions regarding handling of strings, dynamic arrays and objects -especially exceptions- when writing programs that use shared libraries (.dll, .so). In…
- Debug information again3
Hi folks. I've got a serious prblem too with debugger and heaptrc. It look like the one described by *Rainer Stratmann *posted last month. My problem goes around the…
- Is TEventobject obsolete?2
I have a doubt about Basicevent and RTLevent, according to the documentation Basicevent is obsolete and I should use RTLevent instead. I use most of the time Rtlevent…
- std::map equivalent?3
Is there a std::map equivalent for free pascal? Shannon
- asm statement4
Is it still necessary to fill in the registers at the end of a asm statement? What happens if there is only the end; statement without the used registers? asm mov eax ,…
- fpimage reader for jpeg20004
Has someone already implemented a fpimage reader for jpeg2000? Mattias
- Unit initialization in dll initialization for arm/WinCE6
Does unit initialization in libraries (.dll files) work in arm/WinCE? Somehow it seems that even code placed in the library initialization begin end block isn't executed…
- buffered filestream12
Is there already a buffered file stream in the fpc sources? Or maybe a generic buffered input stream that can be used with TFileStream? Mattias
- [Patch] there is a small bug in fcl-image imterpolation1
in packages/fcl-image/src/fpinterpolation.inc when it calculates the interpolated color it must initialize the value of the variable NewCol with a quadruple of all zero…
- Currency symbol wrong location7
Hi, I want to format a float number to currency. To do this, I use the Format function using the %m format, as this: Format('%m', [123.25]); I'm using Ubuntu 12.04 and…
- Endiannes & programmer's manual - missing compiler define?3
Had a look at the Programmer's Manual (April 2011, doc version 2.4) appendix G (compiler defines) Saw ENDIAN_LITTLE ENDIAN_BIG Did not see FPC_LITTLE_ENDIAN…
- Initializing dynamic arrays3
I am writing a unit for dealing with matrix algebra with arbitrary sized matrices (as opposed to the FPC unit that deals with a few fixed size ones). I declare the…
- Accessing open array4
Im trying to access an open array but I get a runtime error. I googled a bit, and found some suggestions, but for me they don't work. It's actually a port of some…
- jvmbackend merge3
I saw a big commit merging jvmbackend branch into the main branch. Is it stable already? I currently have both from svn, if it's already stable I'm planning on deleting…
- large TFDSet in windows, select() and FD_XXX() functions - will this work?2
I'm going to experiment with something like this: https://gist.github.com/2842807 Am I calling for trouble, did I forget something? According to some Google searching it…
- Getting an output string from a TProcess6
I want to execute FPC, but filtering the output in order to show only the necessary information. The reason is I am blind, I use screen reader and, in the console…
- Default value for an open array2
It's previously been pointed out to me that a declaration such as procedure OutputWriteF(const str: widestring; values: array of const; fg: TColor= clBlack; bg: TColor=…
- Cross compiling x86_64 on i386 Linux.12
Is it possible to cross-compile a Linux/x86_64 target on a Linux/i386 host? AFAICT it should be possible and I've almost got it working (using Debian's gcc-4.4-multilib…
