| View previous topic :: View next topic |
| Author |
Message |
Alan Guest
|
Posted: Thu May 18, 2006 8:14 am Post subject: Non-form application |
|
|
I got a unit has a class will do the tasks for me in the constructor.
What code should I put into project file ? |
|
| Back to top |
|
 |
Jesper Hogstrom (Borland) Guest
|
Posted: Thu May 18, 2006 9:14 am Post subject: Re: Non-form application |
|
|
Alan wrote:
| Quote: | I got a unit has a class will do the tasks for me in the constructor.
What code should I put into project file ?
|
program dostuff;
uses MyUnit;
begin
TMyClass.Create;
end.
--Jesper |
|
| Back to top |
|
 |
Igor Raskin Guest
|
Posted: Thu May 18, 2006 2:15 pm Post subject: Re: Non-form application |
|
|
"Jesper Hogstrom (Borland)" <jhogstrom_ (AT) _borland_ (DOT) _com_spaminator> wrote in
message news:446c2f86$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Alan wrote:
I got a unit has a class will do the tasks for me in the constructor.
What code should I put into project file ?
program dostuff;
uses MyUnit;
begin
TMyClass.Create;
end.
|
TMyClass.Create.Free;
Igor |
|
| Back to top |
|
 |
Jesper Hogstrom (Borland) Guest
|
Posted: Thu May 18, 2006 6:14 pm Post subject: Re: Non-form application |
|
|
Igor Raskin wrote:
| Quote: | begin
TMyClass.Create;
end.
TMyClass.Create.Free;
|
...if in w32 :)
--Jesper |
|
| Back to top |
|
 |
David Clegg Guest
|
Posted: Thu May 18, 2006 9:14 pm Post subject: Re: Non-form application |
|
|
Jesper Hogstrom (Borland) wrote:
| Quote: | ..if in w32
|
Or in .NET, and the class implements IDisposable :-)
--
Cheers,
David Clegg
dclegg (AT) gmail (DOT) com
http://cc.borland.com/Author.aspx?ID=72299
QualityCentral. The best way to bug Borland about bugs.
http://qc.borland.com
"I think Smithers picked me because of my motivational skills. Everyone
says they have to work a lot harder when I’m around." - Homer Simpson |
|
| Back to top |
|
 |
Marc Rohloff [TeamB] Guest
|
Posted: Fri May 19, 2006 12:14 am Post subject: Re: Non-form application |
|
|
On Thu, 18 May 2006 17:27:26 +1000, Alan wrote:
| Quote: | I got a unit has a class will do the tasks for me in the constructor.
What code should I put into project file ?
|
You would probably get a better response if you posted in an
appropriate technical group.
--
Marc Rohloff [TeamB]
marc rohloff -at- myrealbox -dot- com |
|
| Back to top |
|
 |
Alan Guest
|
Posted: Fri May 19, 2006 12:14 am Post subject: Re: Non-form application |
|
|
Hi,
I got no luck.
If I just put the
begin
TMyClass.Create;
end.
And run the exe or F9 in IDE, I cannot see the program running and it is
actually not running.
"David Clegg" <dclegg (AT) gmail (DOT) com> wrote in message
news:xn0emep2b10jbj001 (AT) newsgroups (DOT) borland.com...
| Quote: | Jesper Hogstrom (Borland) wrote:
..if in w32 :)
Or in .NET, and the class implements IDisposable :-)
--
Cheers,
David Clegg
dclegg (AT) gmail (DOT) com
http://cc.borland.com/Author.aspx?ID=72299
QualityCentral. The best way to bug Borland about bugs.
http://qc.borland.com
"I think Smithers picked me because of my motivational skills. Everyone
says they have to work a lot harder when I'm around." - Homer Simpson |
|
|
| Back to top |
|
 |
Alan Guest
|
Posted: Fri May 19, 2006 1:14 am Post subject: Re: Non-form application |
|
|
Which group should I post the message to?
"Marc Rohloff [TeamB]" <"on request"> wrote in message
news:1pwbhjj43lvg0.dlg (AT) dlg (DOT) marcrohloff.com...
| Quote: | On Thu, 18 May 2006 17:27:26 +1000, Alan wrote:
I got a unit has a class will do the tasks for me in the constructor.
What code should I put into project file ?
You would probably get a better response if you posted in an
appropriate technical group.
--
Marc Rohloff [TeamB]
marc rohloff -at- myrealbox -dot- com |
|
|
| Back to top |
|
 |
Marc Rohloff [TeamB] Guest
|
Posted: Fri May 19, 2006 1:14 am Post subject: Re: Non-form application |
|
|
On Fri, 19 May 2006 10:15:43 +1000, Alan wrote:
| Quote: | Which group should I post the message to?
Either borland.public.delphi.language.delphi.win32 |
or
borland.public.delphi.language.delphi.dotnet
depending.
You also might want to include some of your code.
For my 2c, you should probably move active code out of your
constructors.
--
Marc Rohloff [TeamB]
marc rohloff -at- myrealbox -dot- com |
|
| Back to top |
|
 |
Jerry Hayes Guest
|
Posted: Fri May 19, 2006 7:14 pm Post subject: Re: Non-form application |
|
|
"Alan" <alanpltseNOSPAM (AT) yahoo (DOT) com.au> wrote in message
news:446d0a96$1 (AT) newsgroups (DOT) borland.com...
| Quote: | And run the exe or F9 in IDE, I cannot see the program running and it is
actually not running.
|
You might try running it from a dos prompt. It's probably creating a
window, running your app and closing the window without you noticing. |
|
| Back to top |
|
 |
|