Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Miscellaneous
»
Other
»
Launch console app from Lazarus app in Linux.
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
how to make application r...
by
DragoRosso
[
Today
at 12:19:23 am]
Discussion: How do you di...
by
dbannon
[
Today
at 12:18:30 am]
TPopupMenu OnDrawItem (in...
by
d7_2_laz
[
Today
at 12:09:55 am]
Lazarus Release 3.6
by
c600g
[
Today
at 12:01:39 am]
Nested declarations insid...
by
Warfley
[January 13, 2025, 10:46:05 pm]
File operations blocking ...
by
atlatl
[January 13, 2025, 10:33:41 pm]
Assigning proc to event a...
by
Bart
[January 13, 2025, 10:16:59 pm]
test if web site is valid
by
Warfley
[January 13, 2025, 10:16:24 pm]
SDL2 image rotation Probl...
by
TRon
[January 13, 2025, 10:00:09 pm]
Why with allows assignmen...
by
PascalDragon
[January 13, 2025, 09:53:19 pm]
how to create sync applic...
by
Thaddy
[January 13, 2025, 09:22:14 pm]
Color Buttons
by
lainz
[January 13, 2025, 09:14:49 pm]
Lazarus Pascal Keywords a...
by
PascalDragon
[January 13, 2025, 09:11:42 pm]
Generics as PUBLISHED imp...
by
PascalDragon
[January 13, 2025, 09:04:43 pm]
FP crashes after running ...
by
Martin_fr
[January 13, 2025, 09:03:42 pm]
Random ?
by
Thaddy
[January 13, 2025, 07:26:20 pm]
UnoLib - library in Pasca...
by
ackarwow
[January 13, 2025, 07:08:06 pm]
file Blockread error
by
TBMan
[January 13, 2025, 07:02:54 pm]
¿Hay alguna limitación en...
by
e_nigma
[January 13, 2025, 06:27:03 pm]
Exploring FPC/Lazarus uni...
by
MarkMLl
[January 13, 2025, 05:48:05 pm]
Web Pascal without JavaSc...
by
zendrael
[January 13, 2025, 05:19:57 pm]
MainMenu: How to use the ...
by
madref
[January 13, 2025, 03:03:37 pm]
How to combine data from ...
by
Thaddy
[January 13, 2025, 02:30:11 pm]
SDL2: Runtime Error 216 o...
by
mischi
[January 13, 2025, 02:11:35 pm]
Might have a menu bug in ...
by
cdbc
[January 13, 2025, 01:46:12 pm]
« previous
next »
Print
Pages: [
1
]
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.-
Logged
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 ?
Logged
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.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Miscellaneous
»
Other
»
Launch console app from Lazarus app in Linux.
TinyPortal
© 2005-2018