BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Non-form application

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Non-Technical
View previous topic :: View next topic  
Author Message
Alan
Guest





PostPosted: Thu May 18, 2006 8:14 am    Post subject: Non-form application Reply with 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 ?
Back to top
Jesper Hogstrom (Borland)
Guest





PostPosted: Thu May 18, 2006 9:14 am    Post subject: Re: Non-form application Reply with quote



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





PostPosted: Thu May 18, 2006 2:15 pm    Post subject: Re: Non-form application Reply with quote



"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





PostPosted: Thu May 18, 2006 6:14 pm    Post subject: Re: Non-form application Reply with quote

Igor Raskin wrote:

Quote:
begin
TMyClass.Create;
end.

TMyClass.Create.Free;

...if in w32 :)

--Jesper
Back to top
David Clegg
Guest





PostPosted: Thu May 18, 2006 9:14 pm    Post subject: Re: Non-form application Reply with quote

Jesper Hogstrom (Borland) wrote:

Quote:
..if in w32 Smile

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





PostPosted: Fri May 19, 2006 12:14 am    Post subject: Re: Non-form application Reply with quote

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





PostPosted: Fri May 19, 2006 12:14 am    Post subject: Re: Non-form application Reply with quote

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





PostPosted: Fri May 19, 2006 1:14 am    Post subject: Re: Non-form application Reply with quote

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





PostPosted: Fri May 19, 2006 1:14 am    Post subject: Re: Non-form application Reply with quote

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





PostPosted: Fri May 19, 2006 7:14 pm    Post subject: Re: Non-form application Reply with quote

"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Non-Technical All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.