Recent

Author Topic: Launch console app from Lazarus app in Linux.  (Read 5761 times)

cyber_python

  • Jr. Member
  • **
  • Posts: 79
Launch console app from Lazarus app in Linux.
« on: January 01, 2005, 08:12:51 pm »
Hi everyone!

I am a university student from Greece and I have written a C++ IDE for Linux which uses g++ to compile.

The thing is, that I want to add a "Run Program" button that will execute the compiled C++ program instead of forcing the user to use the console.

Does anyone know how to run an external (console) application (that is not in the Environment Path - we do not want that for programs that the user writes!) from within a program written with Lazarus?

-Thanks for your time.-

Lightning

  • Sr. Member
  • ****
  • Posts: 422
Launch console app from Lazarus app in Linux.
« Reply #1 on: January 03, 2005, 10:02:52 am »
You could use the TProcess component, Shell() on *nix, ShellExecute()/CreateProcess() on Windows.
Or any another function you would normally use.
Check the Lazarus-CCR website for more information.
Is your IDE written in Lazarus ?
The future must be... Fast and OpenSource so...
Think Open and Lightning Fast!

cyber_python

  • Jr. Member
  • **
  • Posts: 79
Launch console app from Lazarus app in Linux.
« Reply #2 on: January 07, 2005, 01:30:18 pm »
Thanks Lightning! I think "Shell()" will do the job as I have used "ShellExecute()" for the Windows version and it works just fine. And by the way,yes the IDE is written in Lazarus.

 

TinyPortal © 2005-2018