|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Ambiguous in the NamespaceHello,
Hoping someone can help me so I can build my homework! I have a public class called Employee.vb in a project called Compensation Review. I have created HourlyEmployee that Inherits Employee. When I try to build it, I get an error: 'Employee' is ambiguous in the namespace 'Compensation_Review' Any advice? I created a reference to Compensation Review.dll in the Compensation Review project. code?
Show quoteHide quote "Erik" <erikp***@hotmail.com> wrote in message news:1149245973.212932.29130@u72g2000cwu.googlegroups.com... > Hello, > > Hoping someone can help me so I can build my homework! > > I have a public class called Employee.vb in a project called > Compensation Review. I have created HourlyEmployee that Inherits > Employee. When I try to build it, I get an error: > > 'Employee' is ambiguous in the namespace 'Compensation_Review' > > Any advice? I created a reference to Compensation Review.dll in the > Compensation Review project. > use the full namespace path when you reference "Employee"
If your namespace in foo.dll is MyNameSpace.Foo.Employee, use DIm obj as New MyNameSpace.Foo.Employee The ambigous error message is often displayed when it doesnt know which "Employee" you are referencing in your code. Use the class browser in VS to help you find the full namespace. Charlie Brown wrote:
> use the full namespace path when you reference "Employee" This helped, thanks! I have 2 projects in my solution. I had defined> > If your namespace in foo.dll is MyNameSpace.Foo.Employee, use > > DIm obj as New MyNameSpace.Foo.Employee > > The ambigous error message is often displayed when it doesnt know which > "Employee" you are referencing in your code. > > Use the class browser in VS to help you find the full namespace. references to Compensation Review in each project causing the ambiguity. I deleted one of the references and the build succeeded. Much appreciated.
Calling VB.Net classes from VB6
Data base insert Error HELP! Adding a row to a table help! VB.NET Screen Stops Refreshing After Losing Focus?? Offset lines appearing over form after delay (NVIDIA Chipset) How to measure bandwidth need by the application Why doesn't changing the position in a table change the position of the DatGridView that's bound to UI to enter values into a structure Restart, but after a delay Crypto removing white spaces from byte array |
|||||||||||||||||||||||