Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal

fpc-pascal · 2012-06

  1. Automatically exporting C++ API using SWIG??

    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.…

    Reinier Olislagers, download itweb, Krzysztof
    26
  2. Win64 SEH patch fixes some Firebird embedded bugs

    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…

    Reinier Olislagers, Alexis Halbot-Schoonaert, Michael Van Canneyt
    18
  3. Header translation, argument list, array of const?

    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. * *…

    Bernd, kyan, Sven Barth
    5
  4. record helper types in 2.6

    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…

    Bernd, Sven Barth
    2
  5. Unhandled exception from library crashes host exe

    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…

    kyan, Antonio Fortuny, Jonas Maebe
    12
  6. Shared libraries and threadvars

    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…

    Mark Morgan Lloyd, Sven Barth
    7
  7. Variable alignment in arm-embedded

    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…

    Koenraad Lelong, alrieckert, Florian Klaempfl
    23
  8. Error message: No matching implementation for interface method ...

    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 =…

    John Repucci
    0
  9. fpc arm-embedded suitable for cortex-m4 ?

    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…

    Koenraad Lelong, Jeppe Græsdal Johansen
    2
  10. Windows Phone 8 + pascal

    *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…

    Juha Manninen, Ludo Brands, Marco van de Voort
    12
  11. Codepage: UTF-8 code greater than 65535 found

    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);

    luciano de souza, Mattias Gaertner
    1
  12. DOM and namespaces with prefix

    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/…

    Torsten Bonde Christiansen, Daniel Gaspary
    4
  13. UTF8 JSON library: was: UTF-8 XML

    (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…

    Reinier Olislagers, Luiz Americo Pereira Camara, Mattias Gaertner
    5
  14. encryption and decryption

    Does someone know how to do encryption and decryption with keys?

    Rainer Stratmann, Jorge Aldo G. de F. Junior, leledumbo
    10
  15. Writing an outlook addons in FPC

    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

    ik
    0
  16. AUTO: Luca Manganelli è assente dall'ufficio

    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…

    Unknown author
    0
  17. Adding method dynamically to a class

    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…

    ik, Inoussa OUEDRAOGO, JC Chu
    16
  18. Postgresql Concurrent Transactions

    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,…

    Andrew Brunner, Ludo Brands
    1
  19. OAuthv1/Twitter library/application ready; was: EncodeURLElement, underscore and RFC3986?

    (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…

    Reinier Olislagers, Graeme Geldenhuys, Marcos Douglas
    3
  20. Creating video files

    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…

    Krzysztof, Bernd, Flávio Etrusco
    7
  21. Converting from seconds to TTime: easiest way?

    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…

    Reinier Olislagers, Bernd, OBones
    6
  22. fpimage blur

    Is there a function to blur an entire fpimage or a rectangular area? Mattias

    Mattias Gaertner, Graeme Geldenhuys, Michael Van Canneyt
    9
  23. Dynamically Execute method

    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…

    ik, Bernd, Ludo Brands
    6
  24. header translation question, 64 bit problem

    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. */…

    Bernd, Florian Klämpfl, ik
    10
  25. fpmake question

    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…

    Bernd, Reinier Olislagers, Sven Barth
    3
  26. Playing sounds with standard components

    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…

    luciano de souza, Graeme Geldenhuys, Jorge Aldo G. de F. Junior
    24
  27. Strings and objects crossing dll boundaries

    A couple of questions regarding handling of strings, dynamic arrays and objects -especially exceptions- when writing programs that use shared libraries (.dll, .so). In…

    kyan, Marco van de Voort, Mark Morgan Lloyd
    2
  28. Debug information again

    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…

    Antonio Fortuny, Jonas Maebe, Martin
    3
  29. Is TEventobject obsolete?

    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…

    Victor Campillo, Tomas Hajny
    2
  30. std::map equivalent?

    Is there a std::map equivalent for free pascal? Shannon

    Xiangrong Fang, Alexander Shishkin, Sven Barth
    3
  31. asm statement

    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 ,…

    Rainer Stratmann, Alexander Shishkin, Jonas Maebe
    4
  32. fpimage reader for jpeg2000

    Has someone already implemented a fpimage reader for jpeg2000? Mattias

    Mattias Gaertner, Florian Klaempfl, Jonas Maebe
    4
  33. Unit initialization in dll initialization for arm/WinCE

    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…

    kyan, Sven Barth, Tomas Hajny
    6
  34. buffered filestream

    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

    Mattias Gaertner, Alexander Shishkin, Martin Schreiber
    12
  35. [Patch] there is a small bug in fcl-image imterpolation

    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…

    Bernd
    1
  36. Currency symbol wrong location

    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…

    Leonardo M. Ramé, Ludo Brands, Marco van de Voort
    7
  37. Endiannes & programmer's manual - missing compiler define?

    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…

    Reinier Olislagers, Marco van de Voort, Sven Barth
    3
  38. Initializing dynamic arrays

    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…

    Unknown author, Jonas Maebe, Marco van de Voort
    3
  39. Accessing open array

    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…

    Koenraad Lelong, Jonas Maebe, Mark Morgan Lloyd
    4
  40. jvmbackend merge

    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…

    leledumbo, Jonas Maebe, Sven Barth
    3
  41. large TFDSet in windows, select() and FD_XXX() functions - will this work?

    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…

    Bernd
    2
  42. Getting an output string from a TProcess

    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…

    luciano de souza, leledumbo, Marco van de Voort
    6
  43. Default value for an open array

    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=…

    Mark Morgan Lloyd, kyan
    2
  44. Cross compiling x86_64 on i386 Linux.

    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…

    Bruce Tulloch, Causal Lists, Jonas Maebe
    12