8< ------------------------------------------------ Date: Sat, 7 Feb 2004 09:59:22 +0100 Subject: Re: Help with blockread/blockwrite From: Frank Heckenbach Peter Norton wrote: > MinGW/GPC 3.2.3 That's the GCC version. Run `gpc -v'. Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: 51FF C1F0 1A77 C6C2 4482 4DDC 117A 9773 7F88 1707 8< ------------------------------------------------ Date: Sat, 7 Feb 2004 10:50:55 -0800 (PST) From: Peter Norton Subject: Re: Help with blockread/blockwrite Frank wrote: > That's the GCC version. Run `gpc -v'. Oh yes. GPC is version 20030830. BTW it seems realy buggy on windows ( or windows is buggy itself ;-) Today I found that my program can't read BMP (image) header with GPC. The record I use for this is started from two bytes ( I tried also two char, shortword, shortint ) followed by integer, integer ... It reads first two bytes OK, then skips two bytes more and starts to read first integer from offset 4 ??? Magic. Peter. __________________________________ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html 8< ------------------------------------------------ From: "Prof A Olowofoyeku (The African Chief)" Date: Sat, 07 Feb 2004 20:28:56 -0000 Subject: Re: Help with blockread/blockwrite On 7 Feb 2004 at 10:50, Peter Norton wrote: > Frank wrote: > > That's the GCC version. Run `gpc -v'. > > Oh yes. GPC is version 20030830. > > BTW it seems realy buggy on windows ( or windows is > buggy itself ;-) > Today I found that my program can't read BMP (image) > header with GPC. The record I use for this is started > from two bytes ( I tried also two char, shortword, > shortint ) followed by integer, integer ... It reads > first two bytes OK, then skips two bytes more and > starts to read first integer from offset 4 ??? Magic. Please send an example of such code. I doubt that this particular problem is a GPC bug. I use GPC under Mingw (including 20030830) for all sorts of things that require quite low-level file access (manipulating zip and other types of archives for example) and I for one have never had any problem with parsing headers of BMP (or any other kind of) files. Indeed I have a GPC program (a sample program for an OOP framework that I am developing) that opens and displays bitmap files of all sorts. It may well be that the problem is in something that you are doing. Best regards, The Chief 8< ------------------------------------------------ Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/ 8< ------------------------------------------------