Page 1 of 1

Console App. TMyConnection.Create()

Posted: Sat 21 Oct 2006 14:48
by teunis
Trying to make a Console Application with D6
the TMyConnection.Create() method needs an owner.
Self doesn't work.

VAR MyConnection1 : TMyConnection;
BEGIN
MyConnection1:= TMyConnection.create(?);
etc.
END.
Thanks for answering Teunis :?

Posted: Sat 21 Oct 2006 21:00
by swierzbicki
MyConnection1:= TMyConnection.create(nil);
or
add a datamodule + TmyComponents

Posted: Sun 22 Oct 2006 13:49
by teunis
Thanks Swierzbicki for ypour help.
The NIL works fine.
I did not try to add a DataModule because I like to keep the program small.
Teunis