Article View: borland.public.cppbuilder.database.ado
Article #907Re: data modules in packages
From: Onat TAKAK
Date: Fri, 01 Aug 2003 15:29
Date: Fri, 01 Aug 2003 15:29
19 lines
2457 bytes
2457 bytes
gabotz wrote:
> hi, i use some data moudles to access data from a database. the data modules
> contain all the business rules needed. i would like to place all the data
> modules in a package in order to isolate the client layer from the business
> layer, and hoping that any change in any of them would only require patching
> only one file (either the executable or the package). but when i call a data
> module from an executable it appears that the data module does not exist.
> what can i do?
> thanks
>
>
Hi,
Do you have any message(ie Access violation.. ).
Also you have to put the following code in your data module;
class PACKAGE MyDataModule; // Add this definition to your header file
class MyDataModule: TDataModule{
...
};
Technical Details
Message-ID:
<3f2a8758@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f1debf5@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,2bd0fcc10753e86 X-Google-Attributes: gidfcd2b,public X-Google-Thread: 10698b,2bd0fcc10753e86 X-Google-Attributes: gid10698b,public X-Google-Thread: 10db1e,2bd0fcc10753e86 X-Google-Attributes: gid10db1e,public X-Google-Thread: fde74,2bd0fcc10753e86 X-Google-Attributes: gidfde74,public X-Google-Thread: fb4e2,2bd0fcc10753e86 X-Google-Attributes: gidfb4e2,public X-Google-Thread: fc5f9,2bd0fcc10753e86 X-Google-Attributes: gidfc5f9,public X-Google-ArrivalTime: 2003-08-01 08:36:23 PST Date: Fri, 01 Aug 2003 18:29:25 +0300 From: Onat TAKAK <onatt@tbs-ltd.com.tr> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.ado,borland.public.cppbuilder.database.dbexpress,borland.public.cppbuilder.database.multi-tier,borland.public.cppbuilder.database.sqlservers,borland.public.cppbuilder.language.cpp,borland.public.cppbuilder.oodesign Subject: Re: data modules in packages References: <3f1debf5@newsgroups.borland.com> In-Reply-To: <3f1debf5@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 195.175.135.36 Message-ID: <3f2a8758@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1059751768 195.175.135.36 (1 Aug 2003 08:29:28 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail