Article View: borland.public.cppbuilder.nativeapi
Article #2617Re: dynamic_cast does not work in packages
From: Dmitry
Date: Tue, 06 Feb 2007 08:41
Date: Tue, 06 Feb 2007 08:41
24 lines
1659 bytes
1659 bytes
Dear Clayton,
> The problem you are experiencing usually happens with raw
> DLLs or BPLs that have been loaded using LoadLibrary().
you are exact!
i use LoadLibrary to load my plugins.
The core bpl, which is loaded as runtime package,
loads my plugins by LoadLibrary.
Then action in my plugin calls method in core bpl
bool __fastcall TFDataSetInsert::Execute()
{
TDictDataSet *a_DataSet = dynamic_cast<TDictDataSet
*>(DataSource->DataSet);
if(!a_DataSet) throw Exception("DataSet should be of type
TDictDataSet!");
}
please tell where can i upload test example of my problem.
thanks in advance,
Dmitry.
Technical Details
Message-ID:
<45c83ebc@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<45c1f643@newsgroups.borland.com> <45c7c793$1@newsgroups.borland.com> <45c7cad8$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,eea25a98edb328b5 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Dmitry" <dmitry@pikalevo.com> From: "Dmitry" <dmitry@pikalevo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <45c1f643@newsgroups.borland.com> <45c7c793$1@newsgroups.borland.com> <45c7cad8$1@newsgroups.borland.com> Subject: Re: dynamic_cast does not work in packages Date: Tue, 6 Feb 2007 11:41:16 +0300 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 89.20.24.3 Message-ID: <45c83ebc@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1170751164 89.20.24.3 (6 Feb 2007 00:39:24 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail