fpc-pascal · 2005-07
- Two-dimensional dynamic arrays in C libraries1
I need to pass two- or three-dimensional dynamic arrays to C libraries from FPC. I know this is feasible with one-dimensional arrays, by using a pointer to the array:…
- fast integer multiplication12
Suppose I have the following code: var a,b: dword; c: qword; begin a := 10000000; b := 20000000; c := a * b; writeln(c); end. Now, although c is large enough to contain…
- lazarus crash at start3
Trying to find why lazarus crashes at start in win98 I found a courious problem, global variable IsConsole is true when it should be false as lazarus is built as a gui…
- Exporting from Elf okay?0
With regards to MS Windows: There are some myths out there which say you cannot export functions from exe's.. but this supposedly was only true back pre 386 versions of…
- Bitmap variables0
Hello all. Can anybody explain what is the structure of the bitmap variables used in GetImage and PutImage. How are images stored in them?
- FPC 2.0 / Lazarus Problem0
FPC 2.0 seems to have problems with lazarus new ide paths. Sometimes it gives an error, that it can not find uniteditor.pp or componentpalette.pas. The paths are…
- ExecuteProcess5
I'm using ExecuteProcess to run a commandline application. This application returns information to stdout. I have tried to pipe this to a file, but unfortunately this…
- Pointers11
Hi everyone I'm just trying to compile and execute a simple example from a graphics programming tutorial under FPC. Here is the code <code> PROGRAM PixelExample; {$MODE…
- C++ > C wrapper callback > Pascal Continues UPDATE1
See bottom post ----- Original Message ----- From: "Urbansound" To: Sent: Wednesday, July 27, 2005 11:05 PM Subject: C++ > C wrapper callback > Pascal Continues
- C++ > C wrapper callback > Pascal Continues0
Reply Peter and Tomas, is below, each... Thread pruned. The s call in the message line was converted to a "pointer(s)". I found the FPC_INITIALIZEUNITS at Main, in the…
- C++ > C wrapper callback > Pascal Continues2
I would think you have the likely cause. Unfortunately, the 2.0.0. Docs, nor the Web docs make reference to the function, (if it is a function), and Google seems to…
- C++ > C wrapper callback > Pascal Continues1
Thank you to Michalis Kamburelis... clipped this down (and still too long)... Yes the integer sizes were confirmed = 32 (win32 gui) and the export was added simply…
- Doubts about QueryInterface0
When I try to compile a unit in delphi mode with the following function function Implements(out AReference; const AObject: TObject; const AInterface: TGUID): Boolean;…
- C++ > C wrapper callback > Pascal1
I'm probably over my head on this one and some of the FPC forum entries talk about limited functionality toward C++, but here goes. A Windows pascal application is…
- Freepascal and good usage of TStringList3
Could any one help me debug the little piece of code thereafter ? I get a SIGSEGV.. and I don't know why (OK.. i am not that good). Thanks for your help. JM…
- Variants vs. Variant Records7
I have to build some container classes (like java Vector) for a project. I was thinking on how to store some primitive values (so far I only need to store Integer, Real…
- FPC and CD-ROMs2
Hi everyone. I have one simple question : How can i eject/close certain CD-ROM drive? I write Certain because I ave more than one so I have to specify which. Is there…
- String to Unicode?2
I'm producing some XML-Output with a FPC-program. The problem is that there are special charakters like < and > in the content of some tags, also some german special…
- [OT] Mime attachments2
Does anyone else here use thunderbird? Everytime I get a digest all of the attachments in thunderbird crowd out the main window so I can't read anything. Is there any…
- Dynamic-linker0
fpc 2.1.1 (2005/07/24) Darwin When compiling with -pg (generate profiling data) linker complains with: /usr/bin/ld: unknown flag: -dynamic-linker= P Davidson Corax…
- Simple hello world fails on freebsd1
Hi all, this is my first attempt at using freepascal on freebsd, I installed it from the tarball, installing everything, but I can't compile ANYTHING. Below is the…
- MSG variable type, Windows GUI2
I encountered an FPC Win32, tutorial that uses the a declaration of variable "msg", declared as a MSG type, shown below. Dev-Pas IDE, FPC 2.00 gives an "error in type…
- unit testing framework for fpc19
not long ago there has been some talk about a test framework for object pascal on this list. IIRC it was some sort of port of junit to pascal. Is it in a usable state?…
- Sharp Zaurus ARM port stability?11
Just laid my hands on a used Zaurus SL5500. I was wondering how stable the Zaurus cross compiler and QT wrapper were? I realise this is slightly off topic, but I…
- How to know if an objects implements an interface0
I have a class that has a TObject field. In some of the instances of this class the field will contain an objetct from a class that implements certain interface. What…
- Re: Translating scientific libraries2
Yes, it should work. of headers. If you need help with translating, I'm quite willing to help, and I'd definitely consider distributing the translated headers with FPC.…
- Mac OS X Pascal Interfaces0
The latest version of the Mac OS X Pascal Interfaces <http://www.microbizz.nl/GPCInterfacesF.tar.gz> can be downloaded from <http://www.microbizz.nl/gpc.html>. Detailed…
- fpcmake0
In MS Windows, fpcmake says: Error: Target "win32", package "libasync" not found In my 2.1.0 source directories, libasync appears to be for unix only..i.e. it's in a…
- Shared Object Libraries non-PIC1
How does the calling program know that it's not PIC (position independant code)? i.e. how would you stop a calling program from thinking so? Is it based on what…
- Recursion2
Having problem with app. It is rule based, and operates with recursion. Events, such as HTTP requests, timers etc, are processed in separate threads such that rule…
- Calling unassigned procedure gives no stack trace with -gl8
When the following program is compiled with option -gl -Mdelphi and executed, it results in An unhandled exception occurred at $00000000 : EAccessViolation : Access…
- Re: Paths on different OS's8
Path:=ExtractFileDir(ParamStr(0)+PathDelim+'SomePath'+PatHDelim+'Directory'+PatHDelim+'etc'+PathDelim; Is cross platform, or…
- Re: getprocaddress3
The same, just add dynlibs to your uses clause. This is documented. Michael.
- System.Write broken?8
Hi, the folowing code enters infinite loop in the newest version of FreePascal: program textfile; var Archivo: Text; Linea: AnsiString; begin Assign(Archivo, 'test.pp');…
- cMem, cThreads0
Does cThreads require cMem in program uses clause? i.e. uses etc. It appears that removing cMem causes memory corruption in Darwin. Thanks P Davidson Corax Networks Inc.…
- Single or Double7
I need to know *at compile time* whether the type Real is Single or Double. Currently, I use this {$IFDEF FPC_HAS_TYPE_DOUBLE} ... {$ELSE} {$IFDEF FPC_HAS_TYPE_SINGLE}…
- Crosscompile linking problems7
Hi! I am trying crosscompile my commandline application from Win32 to linux. I have cross binutils, compiled linux RTL and other packages... so, I have not any problem…
- Which OS?5
how can I test - at runtime - under which OS (Linux, Windows and so on) a FPC-program is running? Tom
- libvga (graph unit)1
I have a problem with the graph unit. The program compiles fine under GNU/Linux, but not on FreeBSD. The SVGAlib is installed. But when linking I get the following: |…
- Something like "Is a number"?15
I'm converting some strings with "strtoint" into integers. But sometimes the string can't be converted to a number. Is there a function which takes a string and tells me…
- ARM compiler platforms2
since the website only seems to mention the Zaurus as device for running fpc and executing it's program i assume (cross)compiling at least works on linux. What other…
- Wrapping libInkLevel0
I've been trying to create a wrapper for libinklevel, h2pas with a fairly standard set of options ran fine, the wrapper compiled once I commented a double-definition for…
- Re: fpc-pascal Digest, Vol 11, Issue 70
In a message dated 7/7/2005 5:02:07 A.M. Central Daylight Time, Steve I got the latest FPC source using Subversion on Win32. Running make build in the root directory…
- make install error1
I got the latest FPC source using Subversion on Win32. Running make build in the root directory worked fine. Running make install fails because cp.exe does not ignore…
- Untyped stdin 'file'0
How can I have an untyped stdin ? I want to use blockread on stdin. Currently, variable 'input' is of type text. If I assign '' to a file variable and reset that, then…
- Blacklisting on fpc lists server0
from time to time I cannot send mail to this list. It's getting back to me wtih this error message: Do I get right that the lists server has the mail server of my…
- Delphi To Free Pascal28
This my test to see if free pascal can be used to compile Delphi Projects. I have thousands of delphi projects/project files etc... but for this test I simply create a…
- array of Char -> String conversion0
is there a standard routine that converts an "array of Char" type to a (Short)String of the same length as the Char-array? The automatic conversion of the compiler seems…
- showing source linenumbers on exceptions6
how can i show source line numbers, when an exception occurs, like sysutils do? ... An unhandled exception occurred at $0040E9B5 : EInOutError : Invalid filename…
