Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Platform independent executable calling  (Read 2654 times)

0 Members and 1 Guest are viewing this topic.

kolofsson

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Platform independent executable calling
« on: March 17, 2008, 07:40:09 pm »
I would like to have an easy way to call external executables. Of course with a possibility to pass arguments and receive standard output.

something like:
string output = sf::exec("program.exe","args");

But you know, maybe i just didnt google enough to see its included in the system library.

TTK-Bandit

  • Newbie
  • *
  • Posts: 21
    • View Profile
Platform independent executable calling
« Reply #1 on: March 17, 2008, 10:13:36 pm »
well with the std library you wont get the output, but you can call system("yourcommand.exe");

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Platform independent executable calling
« Reply #2 on: March 18, 2008, 02:09:24 am »
Such things are not really going to be part of SFML, sorry.

But I'm sure you can find small portable libraries to do it ;)
Laurent Gomila - SFML developer