🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2587

Re: dynamic_cast does not work in packages

#2587
From: Dmitry
Date: Thu, 01 Feb 2007 16:34
30 lines
1719 bytes
to the message above...

bpl_1
//----------------------------------------------
   calls method located in bpl_2
//----------------------------------------------

bpl_2
//--------------------------------------------------------------------------
------------
TMyDataSet *a_MyDataSet = dynamic_cast<TMyDataSet *>(DataSource->DataSet);
this gives a NULL.
//--------------------------------------------------------------------------
--------------

But if i cast
TMyBaseDataSet *a_TMyBaseDataSet = dynamic_cast<TMyBaseDataSet
*>(DataSource->DataSet);
it works OK.

TMyBaseDataSet and TMyDataSet
implemented in the  bpl_2

The RegisterClass in both bpl does not give an effect. It works the same
way.
the main executable compiled with runtime packages.



Dmitry
Technical Details
Message-ID: <45c21641$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45c1f643@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>
Subject: Re: dynamic_cast does not work in packages
Date: Thu, 1 Feb 2007 19:34:45 +0300
Lines: 32
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: <45c21641$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1170347585 89.20.24.3 (1 Feb 2007 08:33:05 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail