Recent

Author Topic: How to start a program from a Lazarusapp - in Linux? SOLVED!  (Read 4682 times)

hy

  • Full Member
  • ***
  • Posts: 224
How to start a program from a Lazarusapp - in Linux? SOLVED!
« on: February 20, 2008, 11:09:21 pm »
Hi... just started switching my own libraries from Dalphi to Lazarus.
With win-lazarus it's pretty good right now (at least it compiles :-))

With Linux I ran into somewhat of trouble, when trying to compile a unit that has some functions to run other programs (or the associated program to a *.png or *.odt-File)
Several types and function calls are not supported with linux.
e.g.:
tProcessInformation
_process_information;
_StartupInfoA;
Actually I searched the forum but couldn't find anything related to this topic.

Any help?

Thanx in Advance
_____
***hy

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
RE: How to start a program from a Lazarusapp - in Linux?
« Reply #1 on: February 21, 2008, 04:25:51 am »
I guess they're Windows specific types. To run other programs, better use TProcess.
http://wiki.lazarus.freepascal.org/Executing_External_Programs

hy

  • Full Member
  • ***
  • Posts: 224
RE: How to start a program from a Lazarusapp - in Linux?
« Reply #2 on: February 21, 2008, 08:05:39 am »
Thanks, that was exactly what Iwas looking for. great I just missedthe keyword "process" when searching for a solution :-)
_____
***hy

 

TinyPortal © 2005-2018