Advertisement

1 - 10 of 21 containing alltags:("dynamic_cast") (0.001 seconds)
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;   }
Zones: JavaDate Answered: 02/13/1998 Grade: B Views: 116
Hello C++ programmers, I’m 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...
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...
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...
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)...
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?
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...
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...
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...
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...
Zones: C++Date Answered: 01/01/2003 Grade: A Views: 0