Re: [fpc-pascal] Import Pascal record function to C

2005-11-01 Thread Team Z505
> > On 10/31/05, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > > Runtime library initialising might also be a problem if the DLL uses > > > complex > > > stuff internally? > > > > What do you mean by complex? > > Anything that needs stuff in the RTL initialised. Since this includes > heapman

Re: [fpc-pascal] Import Pascal record function to C

2005-10-31 Thread L505
>Yes, and the other way is also possible. This is done the other way >round when a pascal program calls RegisterClass from the Windows API. >It is sending a structure has a pointer to a function. Thanks for the tip. I think the structure that describes a procedure being used in a struct is here!

Re: [fpc-pascal] Import Pascal record function to C

2005-10-31 Thread Marco van de Voort
> On 10/31/05, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > Runtime library initialising might also be a problem if the DLL uses complex > > stuff internally? > > What do you mean by complex? Anything that needs stuff in the RTL initialised. Since this includes heapmanagement this affects a

Re: [fpc-pascal] Import Pascal record function to C

2005-10-31 Thread Felipe Monteiro de Carvalho
On 10/31/05, Marco van de Voort <[EMAIL PROTECTED]> wrote: > Runtime library initialising might also be a problem if the DLL uses complex > stuff internally? What do you mean by complex? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pas

Re: [fpc-pascal] Import Pascal record function to C

2005-10-31 Thread Marco van de Voort
> On 10/31/05, L505 <[EMAIL PROTECTED]> wrote: > > If you had a procedure or a function in a Pascal record, and it was a > > DLL/DSO, could a C > > application import it as a Struct with a pointer to a function in that > > struct? > > Yes, and the other way is also possible. This is done the oth

Re: [fpc-pascal] Import Pascal record function to C

2005-10-31 Thread Felipe Monteiro de Carvalho
On 10/31/05, L505 <[EMAIL PROTECTED]> wrote: > If you had a procedure or a function in a Pascal record, and it was a > DLL/DSO, could a C > application import it as a Struct with a pointer to a function in that struct? Yes, and the other way is also possible. This is done the other way round when

[fpc-pascal] Import Pascal record function to C

2005-10-31 Thread L505
If you had a procedure or a function in a Pascal record, and it was a DLL/DSO, could a C application import it as a Struct with a pointer to a function in that struct? -- L505 http://z505.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org