qq := get_array(mat1,mat2,kk,3.14);
Change this to
qq := get_array(PDouble(mat1),PDouble(mat2),kk,3.14);
It is ok. Thank you.
jk
--
// Jilani KHALDI
*** K-Book
Interactive Pubblications
http://jkhaldi.oltrelinux.com
___
fpc-pascal maillist - fpc-pasc
At 13:05 5-5-2005, you wrote:
On 05 May 2005, at 13:06, Michael Van Canneyt wrote:
Dynamic arrays are an internal type of pascal. C doesn't know dynamic
arrays. That it works with delphi is pure luck.
Sorry, but pascal dynamic arrays are just pointers.
Totally wrong. They are a reference counted ty
Jilani Khaldi wrote:
Hi All,
I have written a little library in C (compiled in as a DLL) to use it in
Free Pascal and Delphi applications. While the code (below) works with
Delphi (7), I get an Access Violation using FPC (1.98). Perhaps I am
missing something.
Any hint? Thanks!
program fpc_dll
On 05 May 2005, at 13:06, Michael Van Canneyt wrote:
Dynamic arrays are an internal type of pascal. C doesn't know dynamic
arrays. That it works with delphi is pure luck.
Sorry, but pascal dynamic arrays are just pointers.
Totally wrong. They are a reference counted type.
Yes, but aren't they "just
On Thu, 5 May 2005, Jilani Khaldi wrote:
>
> > Dynamic arrays are an internal type of pascal. C doesn't know dynamic
> > arrays. That it works with delphi is pure luck.
>
> Sorry, but pascal dynamic arrays are just pointers.
Totally wrong. They are a reference counted type.
See e.g. page 5-19
Dynamic arrays are an internal type of pascal. C doesn't know dynamic
arrays. That it works with delphi is pure luck.
Sorry, but pascal dynamic arrays are just pointers.
jk
--
// Jilani KHALDI
*** K-Book
Interactive Pubblications
http://jkhaldi.oltrelinux.com
_
At 11:44 5-5-2005, you wrote:
Hi All,
I have written a little library in C (compiled in as a DLL) to use it in
Free Pascal and Delphi applications. While the code (below) works with
Delphi (7), I get an Access Violation using FPC (1.98). Perhaps I am
missing something.
Any hint? Thanks!
progra
Hi All,
I have written a little library in C (compiled in as a DLL) to use it in
Free Pascal and Delphi applications. While the code (below) works with
Delphi (7), I get an Access Violation using FPC (1.98). Perhaps I am
missing something.
Any hint? Thanks!
program fpc_dll;
{$H+}{$MODE OBJFPC}