Article View: borland.public.delphi.database
Article #2034Access TTable from a DLL: REWARD!
From: Michael Schumann
Date: Thu, 01 Apr 1999 00:00
Date: Thu, 01 Apr 1999 00:00
26 lines
1510 bytes
1510 bytes
Hello, is it possible to access a TTable in my main application from a DLL that is linked to the exe at runtime? I have some database structures in my EXE that i want to access from several Plugins. Currently i have to put a lot TTables on every Plugin and have to open the database multiple times. I tried to use Sharemem and then transferred the TTable to the DLL via function: function StartPlugin(AContHandle:THandle; TPat1:TTable):THandle; Within the DLL I try to access the table: ... TPat.Assign(TPat1); frmPlugin.Datasource1.Dataset:=TPat; ... This always gives me an Access Violation, although Sharemem is included as first unit in all DPR and PAS files. Any help is VERY appreciated! I will pay $50 for the solution (=50 Euro or 100 DM)! Michael Schumann m-schumann@d-online.de (ANTISPAM: replace @d with @t)
Technical Details
Message-ID:
<7e0gmj$ota$1@news01.btx.dtag.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 115d96,45255426b6f36d4f,start X-Google-Attributes: gid115d96,public From: M-Schumann@t-online.de (Michael Schumann) Subject: Access TTable from a DLL: REWARD! Date: 1999/04/01 Message-ID: <7e0gmj$ota$1@news01.btx.dtag.de> X-Deja-AN: 461672731 Content-Transfer-Encoding: 8bit X-Sender: 0642121568-0001@t-online.de Content-Type: text/plain; charset=ISO-8859-1 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 X-Complaints-To: abuse@t-online.de X-Trace: news01.btx.dtag.de 922994195 25514 0642121568-0001 990401 19:16:35 Mime-Version: 1.0 Newsgroups: borland.public.delphi.database