Recent

Author Topic: Background Application howto?  (Read 8540 times)

fjtrooper

  • New Member
  • *
  • Posts: 12
Background Application howto?
« on: December 07, 2008, 08:21:28 pm »
Hello, someone knows how to keep application in background. I'd like to create a hidden application, so I'd like it execute in background and with invisible Form.

Thank's

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
RE: Background Application howto?
« Reply #1 on: December 08, 2008, 07:16:26 pm »
How will the user quit your application? Will you have forms at all?

You can just write your own code, like:

program myprog;

begin
  while NotQuit do
  begin
    // do something
    Sleep(10000);
  end;
end.

fjtrooper

  • New Member
  • *
  • Posts: 12
Re: RE: Background Application howto?
« Reply #2 on: December 09, 2008, 05:24:22 pm »
Well, I've got an application ready to run which displays a Form and it runs perfectly. I'd like to make this application invisible, so it execute and stay in background always. The user shouldn't close it. javascript:emoticon(':wink:')


Thanks

Quote from: "sekel"
How will the user quit your application? Will you have forms at all?

You can just write your own code, like:

program myprog;

begin
  while NotQuit do
  begin
    // do something
    Sleep(10000);
  end;
end.
:wink:

fjtrooper

  • New Member
  • *
  • Posts: 12
RE: Re: RE: Background Application howto?
« Reply #3 on: December 18, 2008, 07:01:44 pm »
PLEASE!!! Any help??

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1927
RE: Re: RE: Background Application howto?
« Reply #4 on: December 18, 2008, 07:43:15 pm »
Sekel ist right. If you need a program without form then write a simple Freepascal Program.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
RE: Re: RE: Background Application howto?
« Reply #5 on: December 18, 2008, 08:11:31 pm »
It seams that you don't know how to write non-visual software, is that correct?

You could start by describing what the software should do in steps and then convert that to Pascal. Try to create a flow chart for your application. This is a flowchart:

http://office.microsoft.com/en-us/visio/HP012077271033.aspx

You should also read pascal tutorials (google is your friend):

http://www.taoyue.com/tutorials/pascal/

Or even something very basic:

http://www.geocities.com/hotdogcom/ptutor/chap01.html

fjtrooper

  • New Member
  • *
  • Posts: 12
Re: Background Application howto?
« Reply #6 on: December 21, 2008, 10:00:07 pm »
I've just done my the non visual version of my program. It works perfect. I wanted to do an only app which be able to work as a non visual one, but I think you are right and the best way is a non visual app.

Thanks

fjtrooper

  • New Member
  • *
  • Posts: 12
Re: Background Application howto?
« Reply #7 on: December 22, 2008, 08:54:03 am »
Another question....

My program works perfect, but when I force an exception my console app closes!! I'm controlling exceptions in my program and I have put StopOnException:=FALSE on Create, but always closes.

Have you got any idea?
Thanks

 

TinyPortal © 2005-2018