|
|
|
|||||
|
Interface inheritance problem in VS 2005 EE
I have an ice file like that:
Code:
module gaga
{
interface ThingOne
{
string ID();
};
interface ThingTwo
{
string Name();
};
};
Code:
class ThingOneI : public gaga::ThingOne
{
public:
virtual ::std::string ID(const ::Ice::Current& iceCurrent = ::Ice::Current());
};
class ThingTwoI : public virtual gaga::ThingTwo, public virtual ThingOneI
{
public:
virtual ::std::string Name(const ::Ice::Current& iceCurrent = ::Ice::Current());
};
Code:
virtual ::std::string ID(const ::Ice::Current& iceCurrent = ::Ice::Current())
{
return ThingOneI::ID(iceCurrent);
}
|
|
|||||
|
sorry, there was a typo in my code above, the ice file contains:
Code:
module gaga
{
interface ThingOne
{
string ID();
};
interface ThingTwo extends ThingOne
{
string Name();
};
};
|
|
|||||
|
Bingo! Thanks heaps for that Benoit.
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem building IceSSL for CS with Visual Studio 2005 | Vivien Delage | Help Center | 4 | 11-28-2006 09:55 AM |
| Problem with Interface change! | JaneShang | Help Center | 2 | 05-09-2005 09:20 AM |
| Class inheritance problem | aroan | Help Center | 4 | 01-13-2005 03:25 AM |
| Servant inheritance | dashie | Help Center | 12 | 01-10-2005 01:35 AM |
| Multiple Inheritance problem | brian | Help Center | 4 | 03-11-2004 08:20 PM |