[fpc-pascal] Something like g_object_get() in Pascal?
Matthias Klumpp
matthias at nlinux.org
Sun Aug 1 19:57:28 CEST 2010
On Sun, 01 Aug 2010 19:27:20 +0200, Bernd Kreuss <prof7bit at googlemail.com>
wrote:
> On 01.08.2010 14:45, Matthias Klumpp wrote:
>
>> Because Pascal records are incompatible with C structs
>
> how are they incompatible? It should be possible to define the same
> record as a struct in C and for every struct in C it should be possible
> to define the same as a record in Pascal. Then you could work with
> pointers to these structs (or records).
It does not work here... If I access a PChar in C, I just get an empty
string or a wrong pointer.
> The difficulty in your example might come from the fact that it involves
> the usage of strings and pascal will handle strings a bit differently
> than this is usually done in C.
I use PChars instead of strings, so this can't cause the problems.
Anyway, if you say it works I'll do some tests with it to get it working.
Thanks!
Matthias
More information about the fpc-pascal
mailing list