Thread: swi prolog calling c++ program

  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    2

    Cool swi prolog calling c++ program

    Hi,

    I am trying to have an swi prolog program call functions or methods in a c++ program. it may be two way communication. Are there any tutorials for this sort of stuff with swi prolog and vc++ 2010. Any sample code?

    Thanks gang

  2. #2
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Did you look at SWI-Prolog C++ Interfaces?
    Last edited by AndrewHunter; 08-17-2011 at 06:20 PM.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  3. #3
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    I know it sounds crazy, but have you tried doing a web search on "SWI Prolog calling C++ program"? Admittedly, I only got 62,500 results from Google.

  4. #4
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by tabstop View Post
    I know it sounds crazy, but have you tried doing a web search on "SWI Prolog calling C++ program"? Admittedly, I only got 62,500 results from Google.
    *gasp* How dare you tell someone to use Google! Just ignore the fact that the link I posted was the second link Google pulled up.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  5. #5
    Registered User
    Join Date
    Aug 2011
    Posts
    2

    thank you this looks promising

    Quote Originally Posted by AndrewHunter View Post
    thank you this looks promising

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 03-03-2009, 04:47 PM
  2. Calling one program from another
    By sureshkumarct in forum C Programming
    Replies: 1
    Last Post: 01-09-2007, 06:35 AM
  3. Calling another program
    By chris1985 in forum C Programming
    Replies: 2
    Last Post: 12-15-2004, 04:16 PM
  4. Calling another program
    By Finchie_88 in forum Windows Programming
    Replies: 1
    Last Post: 10-25-2004, 12:13 PM
  5. Calling an FTP from within a program
    By clancyPC in forum C Programming
    Replies: 2
    Last Post: 04-17-2002, 04:37 AM