Board index » delphi » Is a Form-less App possible ?
Chris Menegay
![]() Delphi Developer |
Mon, 07 Sep 1998 03:00:00 GMT
|
Chris Menegay
![]() Delphi Developer |
Mon, 07 Sep 1998 03:00:00 GMT
Is a Form-less App possible ?
I've been trying to write an application with no Form (for cgi).
I was able to create a program that would run with no form, calling procedures and so forth, but I could not create a TQuery object since I had nothing to assign as the owner, it would not let me use Self or even Application. In fact, when I removed the Forms unit from the uses clause, I couldn't reference the application at all. Is there a way to do this? Regards, |
Steve Midgl
![]() Delphi Developer |
Thu, 10 Sep 1998 03:00:00 GMT
Re:Is a Form-less App possible ?In article <31520762.2...@metronet.com>, cmene...@metronet.com says... Quote
horrible, never-to-be-done idea I have is to cut the application component and all it's dependants (easier said than done, maybe) out of the the forms unit and make a special 'form-less' application unit. Include this and create an application object with it. Just possibly, you could use this to pass to NON-VISUAL components. As you probably know, visual components need a window handle to hang off of, so you have to pass a form or something equivalent to them; tapplication won't cut it. Sheesh though, for all that work, I would just learn how to This whole discussion is highly speculative on my part, but I Steve Midgley |
Ron Helwi
![]() Delphi Developer |
Fri, 11 Sep 1998 03:00:00 GMT
Re:Is a Form-less App possible ?QuoteChris Menegay wrote: for a while. Most of my team has found that we don't need queries however. Another thing you could try is to pass nil as the parameter. You are creating it dynamically, right? We are creating lots of TTable objects. Sorry I can't add more, code is at the office. |
degreeAbsolu
![]() Delphi Developer |
Sat, 12 Sep 1998 03:00:00 GMT
Re:Is a Form-less App possible ?QuoteSt...@abomb.com (Steve Midgley) wrote: your code in between the begin and the end? I think I did something like this once: Get rid of the Application.Run & Application.FormCreate. Then put in var begin I haven't actually tested all this out to see if I'm forgetting how I MyQuery := TQuery.Create(Session); Althought I don't know if there are any other repercussions from using Ken |
Brad Choa
![]() Delphi Developer |
Mon, 14 Sep 1998 03:00:00 GMT
Re:Is a Form-less App possible ?On Thu, 21 Mar 1996 19:50:26 -0600, Chris Menegay <cmene...@metronet.com> wrote: Quote> I've been trying to write an application with no Form (for cgi). You bet! First, select File|New Project and choose "CRT Application" I've done this before just to see how small an app can be and I've BTW, these "formless" apps are still Windows applications, so they I just love Delphi's flexibility... Cheers |
Business Transformation
![]() Delphi Developer |
Mon, 14 Sep 1998 03:00:00 GMT
Re:Is a Form-less App possible ?QuoteChris Menegay <cmene...@metronet.com> wrote: TempT := TTable.Create(nil); I presume you can do the same thing with TQuery; That seems to work all right. You just have to explicitly free it at the end. I've written programs with WinCRT - a bit like DOS standard input and === Mark Patterson |
1. Little DLL Crashes My Little App?
2. Form less Client Server Apps ???
3. making a form under a form I am closing disappear
4. Little problem with MDI app
5. I am trying to create a proecdure to do move for my boarderless app
6. BDE to ADO on am mutlithreaded app w/sessions (ADO newbie)
7. Converting BDE app to dbExpress - what am I missing
8. BDE to ADO on am mutlithreaded app w/sessions (ADO newbie)