Base class BaseComponent is ambiguous C++
Help, I have a class like this:
Where paNoesisBaseViewModel is simply NoesisApp::NotifyPropertyChangedBase
And when I try loadComponent
on keyword this throws an error Base class BaseComponent is ambiguous. I know why but I dont know how to workaround it.
And another question: How to declare and implement refleciton that class? To get acces to controls in xaml I use FindName<T> So if my xaml's class is Menu3D.MainMenu so how it will be look?
Code: Select all
class testScreen : public NoesisBaseViewModel, public Noesis::UserControlAnd when I try loadComponent
Code: Select all
GUI::LoadComponent(this, "testScreen.xaml");And another question: How to declare and implement refleciton that class? To get acces to controls in xaml I use FindName<T> So if my xaml's class is Menu3D.MainMenu so how it will be look?
Last edited by BartekW on 19 Apr 2021, 16:40, edited 1 time in total.
Re: Base class BaseComponent is ambiguous C++
Multiple inheritance is only supported for interfaces. You can't inherit from two concrete classes and use reflection in Noesis, at least by default. The are ways to do it, but you really need to master C++ and Noesis.
Have you considered using the C# API? It gives me the impression that it should be easier in this case.
Have you considered using the C# API? It gives me the impression that it should be easier in this case.
Re: Base class BaseComponent is ambiguous C++
Thanks for reply, I understand, I changed some logic :)Multiple inheritance is only supported for interfaces. You can't inherit from two concrete classes and use reflection in Noesis, at least by default. The are ways to do it, but you really need to master C++ and Noesis.
Have you considered using the C# API? It gives me the impression that it should be easier in this case.
Who is online
Users browsing this forum: No registered users and 4 guests