Re: [fpc-pascal] Move() vs MemCopy()

2009-09-30 Thread Hans Mårtensson
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

[fpc-pascal] Strange error

2009-06-08 Thread Hans Mårtensson
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

Re: [fpc-pascal] Strange error

2009-06-08 Thread Hans Mårtensson
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

Re: [fpc-pascal] A question or two regarding the FPC

2009-05-08 Thread Hans Mårtensson
, 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

Re: [fpc-pascal] Pointers in Pascal!!

2008-04-29 Thread 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

Re: [fpc-pascal] Windres

2007-10-03 Thread Hans Mårtensson
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

[fpc-pascal] Windres

2007-10-01 Thread Hans Mårtensson
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

[fpc-pascal] 2 Q on unexpected behaviour of FPC2.0.4

2006-12-17 Thread Hans Mårtensson
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

[fpc-pascal] Executing another program from Pascal

2006-03-28 Thread Hans Mårtensson
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

Re: [fpc-pascal] WinSock

2006-03-17 Thread Hans Mårtensson
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

Re: [fpc-pascal] Problem with FPC2.0.2 and windows

2006-01-08 Thread Hans Mårtensson
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

Re: [fpc-pascal] Problem with FPC2.0.2 and windows

2006-01-08 Thread 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

Re: [fpc-pascal] Problem with FPC2.0.2 and windows

2006-01-08 Thread 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

Re: [fpc-pascal] Problem with FPC2.0.2 and windows

2006-01-07 Thread Hans Mårtensson
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

Re: [fpc-pascal] Problem with FPC2.0.2 and windows

2006-01-04 Thread Hans Mårtensson
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

[fpc-pascal] Problem with FPC2.0.2 and windows

2005-12-29 Thread Hans Mårtensson
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

Re: [fpc-pascal]Linking to Windows

2003-02-07 Thread Hans Mårtensson
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

Re: [fpc-pascal]Linking to Windows

2003-02-05 Thread Hans Mårtensson
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

Re: [fpc-pascal]Linking to Windows

2003-02-04 Thread Hans Mårtensson
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