Is there a way to dynamically cast an object?
I already know that the object valid
and that I have the class name.
method(Object o) {
(fill in here)o).afield = 55;
}
http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_10038796.html
Zones:
JavaDate Answered: 02/13/1998 Grade: B Views: 116
Hello C++ programmers,
Im currently building an infrastructure for a new project, using Microsoft VC++6.0. I would like to use the dynamic_cast feature of the language, but a consultant (a good...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_10249210.html
Zones:
C++Date Answered: 01/09/2000 Grade: B Views: 4
I have 2 different structures that have the same elements (named the same, but defined differently). I would like to be able to use one functions to act on these 2 structures by dynamically castin...
http://www.experts-exchange.com/Programming/Languages/C/Q_20306696.html
Zones:
CDate Answered: 10/07/2002 Grade: A Views: 0
Hi All,
I have a dynamic SQL query which can return a variable number of columns.
What I'm trying to do is dynamically create the datatable based on the datareader.
source is an actual Sql...
http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_21784210.html
Zones:
C#Date Answered: 03/27/2006 Grade: A Views: 35
I have two types derived from the same type and two overloaded functions:
class MyType {}
class MyType1 : MyType {}
class MyType2 : MyType {}
void GetUniqueName(MyType1 val)...
http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_22803890.html
Zones:
C#,
.NETDate Answered: 10/15/2007 Grade: A Views: 0
in following code dynamic_cast is crashing
Atom *a=(*p)["sn"];
if (!a)
throw ProtocolEx(BAD_PACKET);
IntAtom *ia=dynamic_cast<IntAtom *>(a);
whats the reason?
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20794116.html
Zones:
C++Date Answered: 11/11/2003 Grade: A Views: 0
Hi!
I am trying to write a agile programm by writing a factory. The factory is using a messaghandler, the messagehandler is evaluating a string and depending of the result the factory is creatin...
http://www.experts-exchange.com/Programming/System/Linux/Q_21783023.html
Zones:
Linux DevDate Answered: 03/31/2006 Grade: B Views: 0
I'm trying to set the values of JLabels via label.setText( ), where the value is the result of a function call, which in my application
is unknown, because it's done using relflection and the invo...
http://www.experts-exchange.com/Programming/Languages/Java/Q_21981847.html
Zones:
Java,
J2SEDate Answered: 09/07/2006 Grade: A Views: 261
Hi i wrote a simple c++ code but when i compiled it using Microsoft Visual C++ 6.0 IDE .i gives me Warning "dynamic_cast used on polymorphic type class D with /GR- option unpredictable behaviour my...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20300275.html
Zones:
C++Date Answered: 05/14/2002 Grade: B Views: 0
I hope you understand me ....my english is bad...
Can downcast from virtual base class to template derived class be "automatic" without using (use) RTTI (typeid ,dynamic_cast ) and an lot of "if...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20377811.html
Zones:
C++Date Answered: 01/01/2003 Grade: A Views: 0