J
Jon E
I have an interface class with maybe eight functions, defined in one
workspace and am defining a class in a second workspace that derives from
this interface.
Unfortunately only 7 of the 8 functions in my derived class compile whilst
just one of them refuses to be recognised, leading to an error message
"...does not implement interface member...".
Try as I might, I can't fix the error. I have cut and paste names so can
rule out simple type errors.
If I cut and paste the interface class into the second workspace (just
renaming interface so it doesn't clash) then behold, now it works !
The only thing that differentiates the one function that fails from the
other 7 is that one of the parameters is an enum defined in the first
workspace.
Have I missed something obvious ? Or is this a bug in VS2005 ?
I can get it to compile by fully qualifying everything:-
Original :-
public bool MyFunc( EnumedType x, int y )
Modified. :-
bool firstnamespace.IMyInterface.MyFunc( firstnamespace.EnumedType x, int y)
Note however that I've had to remove the "public" from the modified form :-(
Totally confused (yes, I have the "using firstnamespace;" at teh top of teh
file and I have added the first namespace to teh project's references.
TTFN,
Jon
workspace and am defining a class in a second workspace that derives from
this interface.
Unfortunately only 7 of the 8 functions in my derived class compile whilst
just one of them refuses to be recognised, leading to an error message
"...does not implement interface member...".
Try as I might, I can't fix the error. I have cut and paste names so can
rule out simple type errors.
If I cut and paste the interface class into the second workspace (just
renaming interface so it doesn't clash) then behold, now it works !
The only thing that differentiates the one function that fails from the
other 7 is that one of the parameters is an enum defined in the first
workspace.
Have I missed something obvious ? Or is this a bug in VS2005 ?
I can get it to compile by fully qualifying everything:-
Original :-
public bool MyFunc( EnumedType x, int y )
Modified. :-
bool firstnamespace.IMyInterface.MyFunc( firstnamespace.EnumedType x, int y)
Note however that I've had to remove the "public" from the modified form :-(
Totally confused (yes, I have the "using firstnamespace;" at teh top of teh
file and I have added the first namespace to teh project's references.
TTFN,
Jon