Re: [fpc-pascal] how to pass PChar (or any pointer) from Delphi to FPC ?

2006-04-04 Thread Jonas Maebe
On 4 apr 2006, at 10:48, Пётр Косаревский wrote: I can transfer information from Delphi program to FPC, but they have different memory managers or something, so pointers are the same numbers, but different physical addressed. It doesn't sound extraordinary, so, please, help with example or

Re: Re[2]: [fpc-pascal] how to pass PChar (or any pointer) from Delphi to FPC ?

2006-04-04 Thread Jonas Maebe
On 4 apr 2006, at 11:14, Пётр Косаревский wrote: How do you transfer these pointers and what are you trying to accomplish? You generally cannot transfer pointers from one running program to another. It may work by accident in some cases, but it is not something you can rely on (even if both

Re[4]: [fpc-pascal] how to pass PChar (or any pointer) fromDelphi to FPC ?

2006-04-04 Thread Пётр Косаревский
-Original Message- From: Jonas Maebe [EMAIL PROTECTED] On 4 apr 2006, at 11:14, Пётр Косаревский wrote: How do you transfer these pointers and what are you trying to accomplish? You generally cannot transfer pointers from one running program to another. It may work by accident in

Re: Re[2]: [fpc-pascal] how to pass PChar (or any pointer) from Delphi toFPC ?

2006-04-04 Thread Felipe Monteiro de Carvalho
On 4/4/06, Пётр Косаревский [EMAIL PROTECTED] wrote: Sorry for generally windows programming question in this mail list. But what we know: maybe an unit, implementing such functionality OS independent (with Windows.CreateFileMapping under windows and something else under something other)

Re: [fpc-pascal] RAW sector read...

2006-04-04 Thread Felipe Monteiro de Carvalho
On 4/3/06, Michael Van Canneyt [EMAIL PROTECTED] wrote: I'd like to read raw sectors (blocks) from removable devices (such as USB drives) from Linux and/or Windows. Is there any possibility to use FPC with that? On Linux you can read the device like a normal file. On Windows there is probably