🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.oodesign
Article #34

Re: Design questions

#34
From: steve
Date: Wed, 21 Jul 2004 09:17
17 lines
2021 bytes
Eelke Klein <e.klein@mplussoftware.nl> wrote:
>Steve wrote:
>
>> I have an app that has forms that share common functionality, how do I abstract that out so each form can use them? I though of dll's but am not sure that is the way to go. I need to be able to have a way to return recordsets sometimes, and the ability to execute sql statments to different databases the application interacts with. Any suggestions? I just don't want to have to take functions on one form and cut and paste them into another, I could do that to hack it together, but don't want to have
>the maintainence probs later. Also if this matters, I am using various structs to pass to functions as parms. Thanks in advance.
>> Steve
>
>DLL's are no solution to your problem. DLL's are usefull when you want 
>to share code between multiple applications.
>
>When you need cartain functionality in more then one form try to move 
>the functionality to a global function or another class.
>
>Eelke

Thats what I ended up doing, actually when i took another look
at it, my design functionality could have been done better. I had things going on in forms that really belonged elsewhere, thanks for the help.
Technical Details
Message-ID: <40fe34ab$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail
References: <40fc6aae$1@newsgroups.borland.com> <40fd2029$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10db1e,edcf5bd85b163e10
X-Google-Attributes: gid10db1e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "steve" <sportock@hotmail.com>
Sender: "steve" <sportock@hotmail.com>
Reply-To: "steve" <sportock@hotmail.com>
Subject: Re: Design questions
Newsgroups: borland.public.cppbuilder.oodesign
X-User-Info: 24.178.50.100     
References: <40fc6aae$1@newsgroups.borland.com> <40fd2029$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <40fe34ab$1@newsgroups.borland.com>
Date: 21 Jul 2004 02:17:31 -0700
X-Trace: newsgroups.borland.com 1090401451 207.105.83.66 (21 Jul 2004 02:17:31 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail