Every application already has an invisible form called Application (unit Forms). You can Create your application at run time and assign its owner to the Application. And on application destroy free the component.
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of David Smith Sent: Saturday, October 22, 2005 3:10 AM To: [email protected] Subject: Re: [delphi-en] How to use component in Console application? You could try instantiating the object in code (IE. MyConsoleObject.Create) and using it's properties in code. Don't forget to destroy it when you're done with it. Dave --- kc0fcp <[EMAIL PROTECTED]> wrote: > I have a MIDI component I need to use in a Console > Application. (it is > an non-visual component) > > Since there is no form, what is the best approach to > adding the > component's functionality? > > Should I create some sort of hidden form? Is that > even possible in an > Console App? > > Or should I try to create a variant of the component > that is a > stand-alone object rather than a component? > > Could I change "TMidiInput = class(TComponent)" to > "TMidiInput = > class(TObject)"? What unwanted side-effects would I > run into? (I have > the full source to the component) But I'd rather not > maintain two > versions (Component and non-component) unless there > is no other way. > > > Thanks, > > Tim. > > > > > > > __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] SPONSORED LINKS Basic programming language C programming language Computer programming languages The c programming language C programming language List of programming languages ---------------------------------------------------------------------------- ---- YAHOO! GROUPS LINKS a.. Visit your group "delphi-en" on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. ---------------------------------------------------------------------------- ---- [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/i7folB/TM --------------------------------------------------------------------~-> ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

