🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: dynamic_cast does not work in packages

#2546
From: Dmitry
Date: Mon, 12 Feb 2007 16:01
24 lines
1879 bytes
Clayton,

> I think all of the information I need to have you provided in this last
> post.  It wasn't clear to me that you were creating plug-ins.  From your
> first post it appeared that you were simply breaking apart your program
into
> packages.

I have been striving with the problem for a 2 weeks already.
Today my dynamic_cast started to work when i inserted a line
to make sure that class name is the calss name i expect

AnsiString a_ClassName = DataSource->DataSet->ClassName();
TDictDataSet *a_DataSet = dynamic_cast<TDictDataSet *>(DataSource->DataSet);

after inserting:
AnsiString a_ClassName = DataSource->DataSet->ClassName();

my dynamic_cast in package started to work.
I even have no idea what is going on.


Dmitry
Technical Details
Message-ID: <45d08f2f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!news.germany.com!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail
References: <45c1f643@newsgroups.borland.com> <45c7c793$1@newsgroups.borland.com> <45c7cad8$1@newsgroups.borland.com> <45c83ebc@newsgroups.borland.com> <45c8b0b1$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> <45c83ebc@newsgroups.borland.com> <45c8b0b1$1@newsgroups.borland.com>
Subject: Re: dynamic_cast does not work in packages
Date: Mon, 12 Feb 2007 19:01:43 +0300
Lines: 28
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.218
Message-ID: <45d08f2f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1171296047 89.20.24.218 (12 Feb 2007 08:00:47 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!news.germany.com!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail