Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 148 results for
downcast
- Page 1
Downcast with dynamic_cast not working. Help?
Programming
Software Development
15 Years Ago
by cynicalreality
…), and pointed it to Derived &DO. I need to
downcast
it so that it can access the Derived class's…
Pointer downcast
Programming
Software Development
13 Years Ago
by caut_baia
[code] class A { virtual void func()=0; }; class B : public A { void func (); }; class C : virtual public B { void func(); }; //I receive an A* pointer through a function in an LPARAM type argument //and i must
downcast
from an A* to a C*.Can anyone suggest something?Thanks [/code]
Re: Downcast with dynamic_cast not working. Help?
Programming
Software Development
15 Years Ago
by mitrmkar
Shouldn't you rather be calling the setType() through the DO pointer instead of BP (assuming that the Base class does not and is not intended to have a setType() method), i.e. DO->setType("hello"); should work.
Problem in written C++ code
Programming
Software Development
14 Years Ago
by lisha.ahuja
…= new MList<MRvDispatcher *>(); MRvSession *pSession = MRvSession::
downCast
(getComponentByName("RV")); if (pSession) { //Get the …String session=”RV”+i; MRvSession *pSession[i] = MRvSession::
downCast
(getComponentByName(session)); MRvDispatcher *pDispatcher = new MRvDispatcher(this, …
Create a class hierarchy that supports polymorphism
Programming
Software Development
13 Years Ago
by mike42intn
…{ cout<< *(shapes[i])<<endl; //
downcast
pointer TwoDimensionalShape *twoDimensionalShapePtr = dynamic_cast<TwoDimensionalShape *> (shapes[…twoDimensionalShapePtr->getArea()<<endl<<endl;; //
downcast
pointer ThreeDimensionalShape *threeDimensionalShapePtr = dynamic_cast <ThreeDimensionalShape *>…
Re: getting error msg <identifier > expected
Programming
Software Development
17 Years Ago
by masijade
… name =JOptionPane.showInputDialog("Enter name of course: "); //
downcast
all strings into int float etc String inputMarks =JOptionPane.showInputDialog… name =JOptionPane.showInputDialog("Enter name of course: "); //
downcast
all strings into int float etc String inputMarks =JOptionPane.showInputDialog…
Re: Dynamic cast vs static_cast
Programming
Software Development
8 Years Ago
by sepp2k
…` is an actual `Base` object, not a `Derived` object, this
downcast
is invalid and will throw an exception. Programmer *pProg = (Programmer… *)&employee; This is the same invalid
downcast
, but since you're not using `dynamic_cast`, it invokes undefined…
Re: Dynamic cast vs static_cast
Programming
Software Development
8 Years Ago
by mike_2000_17
> this
downcast
is invalid and will throw an exception. Actually, it won'…. > But what is valid dynamic_cast then in case of
downcast
? Can you tell this thing? This would be a simple…
Why use dynamic cast
Programming
Software Development
17 Years Ago
by tlly
… got a question on dynamic cast.Dynamic_cast allows us to
downcast
a data type from one to a more specific one…
Re: Why use dynamic cast
Programming
Software Development
17 Years Ago
by Narue
…. Polymorphism breaks down here, and you're stuck with a
downcast
. But because arrays must be heterogenous, you're also stuck…
getting error msg <identifier > expected
Programming
Software Development
17 Years Ago
by nemo
…(){ String name =JOptionPane.showInputDialog("Enter name of course: "); //
downcast
all strings into int float etc String inputMarks =JOptionPane.showInputDialog…
Need help with error Exception in thread "main" java.lang.Nu
Programming
Software Development
16 Years Ago
by gator6688
… element is a BasePlusCommissionEmployee if ( employees[ i-1 ] instanceof BasePlusCommissionEmployee ) { //
downcast
Employee reference to // BasePlusCommissionEmployee reference BasePlusCommissionEmployee currentEmployee = ( BasePlusCommissionEmployee ) employees[ i…
error dynamic_cast in c++
Programming
Software Development
15 Years Ago
by gammavn
I meets some problem with
downcast
in c++ programming language. Thus, I needs your help. My …
IT Credit Slowdown Could Stall Tech Stocks
Community Center
15 Years Ago
by Brian.oco
… sentiment, should soothe the jangled nerves of even the most
downcast
boardroom baron. The IW piece, written by Marianne Kolbasuk McGee…
My peception For C++
Community Center
Geeks' Lounge
14 Years Ago
by serra01
…++ is better than C language. The first window (in illume
downcast
) shows the inspiration cypher for our low system. The wares…
Help with Inheritance
Programming
Software Development
14 Years Ago
by BobbieJean
… whether element is a BasePlusCommissionEmployee if ( currentEmployee instanceof BasePlusCommissionEmployee ) { //
downcast
Employee reference to // BasePlusCommissionEmployee reference BasePlusCommissionEmployee employee = ( BasePlusCommissionEmployee ) currentEmployee…
Re: Help with Inheritance
Programming
Software Development
14 Years Ago
by BobbieJean
… whether element is a BasePlusCommissionEmployee if ( currentEmployee instanceof BasePlusCommissionEmployee ) { //
downcast
Employee reference to // BasePlusCommissionEmployee reference BasePlusCommissionEmployee employee = ( BasePlusCommissionEmployee ) currentEmployee…
Re: Help with Inheritance
Programming
Software Development
14 Years Ago
by BobbieJean
… whether element is a BasePlusCommissionEmployee if ( currentEmployee instanceof BasePlusCommissionEmployee ) { //
downcast
Employee reference to // BasePlusCommissionEmployee reference BasePlusCommissionEmployee employee = ( BasePlusCommissionEmployee ) currentEmployee…
open pdf within iframe in contentplaceholder
Programming
Web Development
14 Years Ago
by lisles
…; style="height: 248px"> <h2 class="
downcast
"> Quick Links</h2><br />…
enlarge image on mouseover in gridview
Programming
Web Development
13 Years Ago
by lisles
…; style="height: 248px"> <h2 class="
downcast
"> Quick Links</h2> <br />…
ajax updatePanel
Programming
Web Development
13 Years Ago
by lisles
…; style="height: 248px"> <h2 class="
downcast
"> Quick Links</h2> <br />…
Maintainining common API between related classes
Programming
Software Development
13 Years Ago
by tropico
… using inheritance in the first place, because I have to
downcast
the Connection object just to find out what kind of…
How to give - space between scrolling images and border for the images
Programming
Web Development
13 Years Ago
by swornavidhya_m
… hogs. Their fitting submarines deftly break your approving improvisations. Her
downcast
taxonomies actually box up those disgusted turtles. </div>…
Setting a Session Attribute
Programming
Web Development
13 Years Ago
by Dean_Grobler
… that session attributes are stored as objects and must be
downcast
. -Because a Double object cannot be modified, use the Double…
upcasting and downcasting?
Programming
Software Development
13 Years Ago
by lochnessmonster
im curious as to why in the world anyone would ever upcast or even
downcast
an object in their program? [CODE]class shape { }; class circle : public shape { }; int main () { circle a; shape b; b = (shape)a; return 0; }[/CODE]
Re: upcasting and downcasting?
Programming
Software Development
13 Years Ago
by Momerath
… them you'll get an exception. So we have to
downcast
to the Bird class so we can use the methods…
jPanel setText from other class
Programming
Software Development
12 Years Ago
by JSS540
… works great... I have a feeling this is maybe a
downcast
problem? It seems so simple, but I have no clue…
Reference Variable Casting Doubt
Programming
Software Development
11 Years Ago
by rahul.ch
… usually a super class and **RHS should be subclass if
downcast
not required** like shown in original statement `Pan p4 = new…
Java AddressBook Problem
Programming
Software Development
11 Years Ago
by eskember
…;); //Perform a clear if no records are found. clear(); } else { /*
downcast
the object from array list to PersonInfo*/ PersonInfo person = (PersonInfo…
Client-Server Shared Data Structure
Programming
Computer Science
11 Years Ago
by bguild
… what Data objects its Thing should have, so it can
downcast
to extract the necessary values for serialization. The real power…
1
2
3
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC