Calling Visual Prolog from C
Posted: 28 Mar 2014 13:45
Hello! I have a programme written in Visual Prolog that I would like to use with a robot that understands only C. How can I call a Visual Prolog programme from C?
Visual Prolog Discussion forums
https://discuss.visual-prolog.com/
The prolog program receives some input data (a .txt file), processes it, then returns the result (as a different .txt file). So, the C program has to send the input data to Prolog and then recieve the output from it.Thomas Linder Puls wrote:I suppose that you want to do more than just start the Visual Prolog program?
Which interaction do you want/need between the two programs?
Do you have the sources for the Visual Prolog program or just the program?
In that case, it is actually C problems not Visual Prolog problem:l_jam wrote:The prolog program receives some input data (a .txt file), processes it, then returns the result (as a different .txt file). So, the C program has to send the input data to Prolog and then recieve the output from it.Thomas Linder Puls wrote:I suppose that you want to do more than just start the Visual Prolog program?
Which interaction do you want/need between the two programs?
Do you have the sources for the Visual Prolog program or just the program?
I have all the sources.