Graeme Geldenhuys wrote:
2009/9/29 Vincent Snijders vsnijd...@vodafonevast.nl:
I never thought that
mov ax, bx (8086 assembler)
would clear the register after the move.
If you put it like that, it never (for some strange reason) confused
be either. :-) I guess that's probably because
When compiling a windows program with FPC version 2.2.4 with the switch
-dDEBUG (using the default configuration), after running the program I
get the following message:
-
Error
Heap dump by heaptrc unit
0 memory blocks allocated: 0/0
0 memory blocks freed: 0/0
0
Vincent Snijders wrote:
Hans Mårtensson schreef:
When compiling a windows program with FPC version 2.2.4 with the
switch -dDEBUG (using the default configuration), after running the
program I get the following message:
-
Error
Heap dump by heaptrc unit
0 memory
, and
without any sign of any problem.
But then, in case of zero-tolerance, if you trust the compiler, what
about the OS? and, worst, what about your program?
I wouldn't trust the reliability of anything before the full system has
been tested under working conditions.
Hans Mårtensson
then begin freemem(p); p:=nil end end;
(I would regard this a Pascal-improvement?)
Hans Mårtensson
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
example of code.
Thank you for the help.
Hans Mårtensson
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
The FPC documentation prog.pdf (win32 version) explains how to use the
windres.exe to format data such that the FPC compiler can include them i
the exe file as a resource that can be used by the program via the
windows API's. But only for string tables. Yet it indicates that the
windres.exe
When making some windows program with FPC2.0.4 using sysutils, I
encountered a few problems that I tracked down to some (by me)
unexpected behaviour of the compiler. The documentation is not clear on
these points. So may I ask if the following is intentional or rather
some bug.
Q1.
When
In good old days the Turbo Pascal had an EXEC procedure that could
execute another program by invoking the DOS command interpreter.
In better new days the FPC does not seem to have such an option, or I
couldn’t find it in the docs.
Now I am particularly interested in doing such a thing in a
the win32 API's as documented by microsoft.
Hans Mårtensson
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Jonas Maebe wrote:
Can you check the date of the compiler with fpc -iD? As far as I
know no new snapshot was built last night because of errors compiling
the graph unit.
Right. Even though the zip file date is more recent, the fpc -D returns:
2005/12/29
Hans Mårtensson
with 2.0.2 was
sizeof(DLGTEMPLATE)=26
while the old working version had
sizeof(DLGTEMPLATE)=18
which fits to 4 longint in stead of 4 shortint.
Now, I'm not familiar with the development of the PFC,
where and when can I download the corrected version of 2.0.2?
Hans Mårtensson
a corrected version of FPC is released.
Thank you very much.
Hans Mårtensson
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
there, then finally assigned the pBox2 that is of type pointer.
(typeless I mean).
I can't see if that possibly can be treated diffently in the 2.0.2 compiler?
Hans Mårtensson
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org
Jonas Maebe wrote:
On 04 Jan 2006, at 17:51, Hans Mårtensson wrote:
Does PPC 2.0.2 handle alignment of data the same way as former
versions?
The statements below have nothing to do with alignment.
Will the statements (the conditions)
if (dword(pBoxtemplate) and 1)=1 then pBoxtemplate
I decided to improve an old program, I had written for windows, using
FreePascal 1.0.10.
Having downloaded FPC 2.0.2, I wanted to use this version, believing
that the newer is the better.
So I tried to recompile my old source code with 2.0.2, getting a lot of
compile errors.
Anyhow, all of them
At 15:28 06-02-2003 +0100, you wrote:
You may use the GetProcAddress (Win32 API function) to retrieve the
procedure's START-ADDRESS, wehre the input parameter is EITHER an index, I
think of limited size, OR a name, that must be SPELLED CORRECTLY.
If you try both, and look for MATCHING
At 02:00 05-02-2003 +0100, you wrote:
please post the 'uses' clauses and the function declaration from your
source.
that should make it easier.
anton.
Here is a test program I have used:
program x_prog;
{$APPTYPE GUI}
uses windows;
var pPrinter: LPHANDLE;
prd: PRINTER_DEFAULTS;
Procedure
At 05:46 04-02-2003 +0100, you wrote:
Hello, List!
On Monday 03 February 2003 21:14, you wrote:
According to the Free Pascal Programmers manual chapter 4.1 it is possible
to specify an external Windows function with:
Procedure ProcName(Args: TProcArgs); external 'Name' index SomeIndex
But
19 matches
Mail list logo