Console App. TMyConnection.Create()

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
teunis
Posts: 48
Joined: Wed 01 Feb 2006 14:15
Location: Curacao

Console App. TMyConnection.Create()

Post by teunis » Sat 21 Oct 2006 14:48

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 :?

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Post by swierzbicki » Sat 21 Oct 2006 21:00

MyConnection1:= TMyConnection.create(nil);
or
add a datamodule + TmyComponents

teunis
Posts: 48
Joined: Wed 01 Feb 2006 14:15
Location: Curacao

Post by teunis » Sun 22 Oct 2006 13:49

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

Post Reply