Hi,
Thank you for your help.
BR,
Cristian
Type: Posts; User: Cristian Negres
Hi,
Thank you for your help.
BR,
Cristian
Hello,
An object passes a pointer as a parameter to a function call.
Is there a was to find if the memory was freed by the calling function and the pointer is not valid?
BR,
Cristian
Hello,
I make a swich after a variable of type CORBA::Ushort. The gcc flags that it cannot reduce the type to an int an aborts the compilation.
Is there a mapping between the CORBA types...
Hi,
My view was that const just speaks about what the function does and const type indicates how the result behaves. Now it's ok.
Thank you.
Hi,
The function tries to return a reference to the "number" variable.
The code I have posted is just an example of the problem I have. The real code should take a reference to the variable.
...
The following code doesn't compile with gcc 2.96 for linux.
The error I receive is :
../src/text.cxx: In method 'int & Base::getNumber() const':
../src/text.cxx:line7: could not convert...
OK, I may be saying a stupid thing as I didn't worked with multiple inheritance but here it is:
Base
/ | \
Derived1 - Derived2 Derived3
This...
Hi,
Thanks Prelude and skipper.
I agree with you and I made the same proposition to my colleagues before: to have one class with a extra member "name": the reason the design was that they want to...
Hi,
I have a class Base and many Derived classes. All the Derived are identical (the same data members and functions) just the name differs Derived1, Derived2, etc.
Now the problem is that I...
Sorry for not being clear,
Derived1 and Derived2 are identical, I receive a message Base* I know is Derived1*.
Could I cast the message to Derived2?
Cristian
Hello,
I have a type Base and two identical types DerivedOne and DerivedTwo that are derived from Base.
I receive a Base * I know is a DerivedOne*.
Could I cast from DerivedOne* to DerivedTwo?...