fpc-pascal
Subscribe to this list Your subscription
Latest threads
- error while compiling1
I have a function ftest located in library program (dll). function ftest(Param: PWideChar): PWideChar; stdcall; export; And will call them with a program with use:…
- Cancelling Scientific notation5
I am VERY new to free pascal and I have a couple of problems. Can somebody please help? 1. If a, b are real numbers and I want to round a/b foo to 3 decimal places, the…
- FPC with avr 8 bit0
Is there any port of FPC for AVR 8 bit CPU ? Ido http://ik.homelinux.org/
- Unsolicited messages4
I'm receiving unsolicited spam messages along with the normal message on this list. Is this happening to anyone else? The email address I use here is for the sole…
- Component Writing Question For Lazarus3
I've got a simple question , i want to write a component that has two or more other components on it ( ie a text box or or a button and a image ) on it , should i be…
- How to init Array values in a record?3
_TBBUTTON = Record iBitmap : cint; idCommand : cint; fsState : BYTE; fsStyle : BYTE; bReserved : ARRAY[0..1] OF BYTE; // padding for…
- daemon error, arm-linux1
Hello, can anybody tell me what's a problem. When I start my daemon on first machine that have 'arm' processor, it's successfully running, but on other machine that have…
- YAML support4
Are there plans to implement YAML? I found JSON support but that is missing a feature I would like to use. Apparently JSON is a subset of YAML, but it doesn't have a…
- TVision dynamic NewSItem for RadioButton1
I have a list of strings inside a TStringList which contains the contents of my TurboVision RadioButton group. This TStringList has a variable data payload... there may…
- Assigning events in objects2
I'm writing a TurboVision App to cross compile to Linux - but debugging on my main Win32 box. In this app; I'm attempting to use the TFPTimer component to trigger an…
- Help converting C code3
Does the BlockRead below: type TRGBQuad = record rgbBlue: GLubyte; rgbGreen: GLubyte; rgbRed: GLubyte; rgbReserved: GLubyte; end; ... var FileHandle: File; BytesRead:…
- C# implementation of TObject Dispatch/DefaultHandler2
I though I'd share this and as for any feedback. Today I was experimenting with a borrowing a Delphi concept and implementing it in C#. I wanted to be able to do this in…
- ReadXMLFile() fails reading a xml file5
Part of creating a new cross-platform installer application, I'm trying to read an XML file that contains UTF-8 characters, but I get the following error. Unicode…
- Locating the users HOME folder5
Does FPC contain a function that returns the users $HOME folder? Something that works cross-platform? eg: similar to GetAppConfigDir() - Graeme - fpGUI Toolkit - a…
- Problem with Objective Pascal and delphi mode11
I am having trouble with the delphi mode and objective pascal. If I use this defines: {$mode delphi}{$modeswitch objectivec1} Then I get an error in this line:…
- Stupid question: is this safe?4
Is it safe to do the following? var W: Word; U: UInt64; {$R-} //range checkin off begin U := $0000000100000000; W := U; // or W := Word(U); end. I know that the value…
- OOP and XML usage16
The small project I am working on requires reading a XML file and using that data for various things, including building a GUI interface. Most of my projects are…
- Fatal: Internal Error 200511521
It started to show this %subject% since I added some code into {$IF MyBoolCondition} example: {$MODE Delphi} Unit MyUnit; interface Uses MyConditions; {$IF MyCond}…
- How to use a window message queue in a call?5
this is my first posting to the fpc-mailinglist, so please don't slap me if I do anything wrong. :) I'm currently re-writing a program I've written in Delphi some months…
- Illegal type conversion: "LongInt" to "TObject"2
If I compile the code snippet shown below in 'mode delphi' it works fine. If I try and compile it with 'mode objfpc' it fails with a compiler error as shown here:…
- initial implementation of TConnectionLIst0
I've uploaded a very initial version of my TConnectionList manager for Database to github: http://github.com/ik5/TConnectionList Please note that the code is in it's…
- Assigning class method to procedure of object via class name in delphi mode3
I usually use objfpc mode, however I have a few units in delphi mode and don't know if it is a bug or normal delphi behaviour. In the following program I have variable…
- LZMA Algorithm fails on 64bit15
Hello! I use the LZMA-SDK for Pascal to compress files. ( http://www.birtles.org.uk/programming/ ) I can compress files on 64bit and 32bit architecture. But if I try to…
- Cucumber and other testing framework1
I wish to implement Cucumber <http://cukes.info/> (a BDD based testing framework). It has a protocol that needs to be implemented:…
- Need help to fix a bug2
I wish to fix this bug http://bugs.freepascal.org/view.php?id=15460 but I had found serious problems to understand how data is structured in the TBufIndex and descendant…
- RTTI Bug or something else i did wrong...6
The following code: --------------------------------------------------------- Unit RTTIObject; Interface Uses TypInfo; Type TRTTIObject = Class(TObject) Private…
- GetVersionEx - Issue with lpVersionInformation variable1
Guys I've been looking at lpVersionInformation in GetVersionEx which is defined as TOSVersionInfo in redef.inc , and in delphi its defined as TOSVersionInfoEx in…
- ActiveFormHandle from TApplication2
Any one know how to get the Active Handle from the current Form from TApplication ? Delphi has something for this but i cant see it. I'm in the progress of getting JVCL…
- Hardware information: Linux and Windows3
How do I get information about the hardware in Linux and Windows? - Identification of the processor: model, manufacturer, serial number - Identification of Hard Disk:…
- different windows/linux behavior with enumerated types and write/writeln3
If I have a program like this: ------------------------------------------------------ program Project1; {$mode objfpc}{$H+} type whatever = (seth, paul, ken); var haha :…
