Re: [fpc-pascal] (no subject)

2014-03-08 Thread Barracuda
OK, thanks. I've really figured that out - function should return PChar, not string. I'm writing an replacement for closed-source component (also written in Pascal), and using disassembler because of that. This component intercommunicate with two others, loadable library (on one side) written in

Re: [fpc-pascal] (no subject)

2014-03-08 Thread Sven Barth
On 07.03.2014 20:26, Barracuda wrote: Code: - function SentenceSample(N: integer): string; stdcall; begin //writeln('N = ', N); //SentenceSample := RuGetSentence(N); inc(N); end; - Of cour

Re: [fpc-pascal] (no subject)

2014-03-08 Thread Jonas Maebe
On 07 Mar 2014, at 20:26, Barracuda wrote: > - > function SentenceSample(N: integer): string; stdcall; > begin > //writeln('N = ', N); > //SentenceSample := RuGetSentence(N); > inc(N); > end; >

[fpc-pascal] (no subject)

2014-03-08 Thread Barracuda
Hello, guys! Firstly, thank you for such a great project! It's very nice to use it in a study process in a school/university. And now a question :) I have some trouble working on one of my projects, it's code is here: https://github.com/Barracuda72/PT The problem is with function "SentenceSample"