On Sun, 01 Aug 2010 19:27:20 +0200, Bernd Kreuss <prof7...@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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal